Skip to main content

SchemaLayoutOptions

@webda/sql-schema


Interface: SchemaLayoutOptions

Defined in: packages/sql-schema/src/plan.ts:265

Options of the builder that change the physical layout: two plans built with different options are incompatible

Properties​

columnNaming​

columnNaming: "preserve" | "snake_case"

Defined in: packages/sql-schema/src/plan.ts:269

preserve keeps the field names (quoted camelCase), snake_case converts them


extraColumn​

extraColumn: string | false

Defined in: packages/sql-schema/src/plan.ts:273

Name of the JSON column keeping unknown properties, false to have none


foreignKeys​

foreignKeys: boolean

Defined in: packages/sql-schema/src/plan.ts:277

Create foreign key constraints between the tables of the plan


numericAsDecimal​

numericAsDecimal: boolean

Defined in: packages/sql-schema/src/plan.ts:281

Map JSON schema number to decimal instead of double