POST
/
v1
/
sql
/
pretty
{
  "currentSchema": "<string>",
  "expectedSchema": "<string>"
}

Body

application/json
engine
enum<string>
Available options:
ENGINE_UNSPECIFIED,
CLICKHOUSE,
MYSQL,
POSTGRES,
SNOWFLAKE,
SQLITE,
TIDB,
MONGODB,
REDIS,
ORACLE,
SPANNER,
MSSQL,
REDSHIFT,
MARIADB,
OCEANBASE,
STARROCKS,
DORIS,
HIVE,
ELASTICSEARCH,
BIGQUERY,
DYNAMODB,
DATABRICKS,
COCKROACHDB,
COSMOSDB,
TRINO,
CASSANDRA
currentSchema
string

The SDL format SQL schema information that was dumped from a database engine. This information will be sorted to match the order of statements in the userSchema.

expectedSchema
string

The expected SDL schema. This schema will be checked for correctness and normalized.

Response

OK

currentSchema
string

The pretty-formatted version of current schema.

expectedSchema
string

The expected SDL schema after normalizing.