Skip to main content

DomainDraft

Defined in: js-api/src/domains.ts:430

A manifest drafted over an external database (DomainsDataSource.draft): the manifest as the author's starting point, the inventory of what the warehouse has and what the draft did with it, and warehouse-level diagnostics: external-relations-unavailable (the foreign keys could not be read), external-schema-empty (the schema is listed but holds no table), external-schema-missing (the connection does not list it — on PostgreSQL an empty schema reads as missing too), external-schema-unlisted (no table, and the schema list could not be read). Nothing is registered until DomainsDataSource.createSchema.

Properties​

PropertyTypeDescriptionDefined in
diagnosticsDomainManifestIssue[]Warehouse-level findings, by code.js-api/src/domains.ts:436
inventoryobjectEvery table, column and foreign key the warehouse has, with what the draft did with it.js-api/src/domains.ts:434
inventory.columnsDomainDraftColumn[]-js-api/src/domains.ts:434
inventory.relationsDomainDraftRelation[]-js-api/src/domains.ts:434
inventory.tablesDomainDraftTable[]-js-api/src/domains.ts:434
manifestDomainManifestThe drafted manifest, the author's starting point.js-api/src/domains.ts:432