Member Junction
    Preparing search index...

    Generates platform-correct DDL SQL for creating and altering tables. Delegates all platform-specific syntax to SQLDialect.

    Index

    Constructors

    Methods

    • Generate a full CREATE TABLE statement.

      Parameters

      • def: TableDefinition
      • platform: DatabasePlatform
      • Optionaloptions: { IfNotExists?: boolean }
        • OptionalIfNotExists?: boolean

          When true, emit an idempotent, single-statement CREATE (and re-run-safe descriptions) so applying the migration twice — or against a table that physically exists but has no MJ entity yet — does not collide. Off by default to preserve the exact output for callers (e.g. the AI schema designer) that expect a bare CREATE TABLE. The integration Create-Tables path opts in.

      Returns string