---
title: "GET /v1/{+database}/ddl"
method: GET
path: "/v1/{+database}/ddl"
tags: ["projects"]
---

# GET /v1/{+database}/ddl

`GET /v1/{+database}/ddl`

Returns the schema of a Cloud Spanner database as a list of formatted DDL statements. This method does not show pending schema updates, those may be queried using the Operations API.

## Path parameters

- `database` string, required

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/spanner.md) · [All operations](https://skmtc.net/google/apis/spanner/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/spanner/versions/4b66067d2622/schema)
