# CompactDatabaseMetadata

- [JSON representation](https://docs.cloud.google.com/spanner/docs/reference/rest/v1/CompactDatabaseMetadata#SCHEMA_REPRESENTATION)

Metadata type for the long-running operation returned by `CALL compact_all()`, which can be executed using `https://docs.cloud.google.com/spanner/docs/reference/rest/v1/projects.instances.databases.sessions/executeSql#google.spanner.v1.Spanner.ExecuteSql` or `https://docs.cloud.google.com/spanner/docs/reference/rest/v1/projects.instances.databases.sessions/executeStreamingSql#google.spanner.v1.Spanner.ExecuteStreamingSql` APIs.

| JSON representation |
|---|
| ``` { "database": string, "progress": { object (`https://docs.cloud.google.com/spanner/docs/reference/rest/v1/OperationProgress`) }, "cancelTime": string } ``` |

| Fields ||
|---|---|
| `database` | `string` Output only. The database being compacted. |
| `progress` | ``object (`https://docs.cloud.google.com/spanner/docs/reference/rest/v1/OperationProgress`)`` Output only. The progress of the compaction operation. |
| `cancelTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time at which cancellation of this operation was received. `https://docs.cloud.google.com/spanner/docs/reference/rest/v1/projects.instances.databases.operations/cancel#google.longrunning.Operations.CancelOperation` starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use `https://docs.cloud.google.com/spanner/docs/reference/rest/v1/projects.instances.databases.operations/get#google.longrunning.Operations.GetOperation` or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a `https://docs.cloud.google.com/spanner/docs/reference/rest/v1/Status#FIELDS.code` of 1, corresponding to `Code.CANCELLED`. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |