[data-reveal]{opacity:1!important;transform:none!important}
AntelopeJS DMS
DocumentationConfiguration

Configuration

Every option of the dms-database module, set in antelope.config.ts.

All options are optional. Set them in the config block of the dms-database entry of antelope.config.ts. The module reads them at start: restart the backend after a change.

For example, label the connection and distinguish billing data from tenant schemas:

antelope.config.ts ts
"dms-database": {
  source: { type: "package", package: "@antelopejs/dms-database", version: ">=0.7.0 <0.8.0" },
  config: {
    driverLabel: "MongoDB 8.0",
    schemaLabels: {
      billing: { label: "Billing", color: "success" },
      "tenant-*": { label: "Tenant data", color: "warning" },
    },
  },
},

These labels describe the connection; they do not select a driver or create schemas.

Options

OptionTypeDefaultDescription
driverLabelstringnone, the Overview shows —Name of the database shown on the Overview's connection card, such as "MongoDB 8.0". The Database interface cannot discover the driver, so you supply it.
schemaLabelsRecord<string, { label: string; color?: Tone }>built-in patternsLabels and colours for schemas, keyed by exact schema ID or by a glob pattern containing *.
externalConnectionsRecord<string, { access?: "read" | "read-write" }>none, every connection is read-onlyWhat the DMS may do on each external connection, keyed by connection ID. See External databases.

External connections

A table the DMS maps from an external connection gets generated routes. They write only when externalConnections.<id>.access is "read-write". Otherwise its create, edit, delete, archive and restore routes answer 403. They answer 403 for a connection the module does not list too, unless another module registers an access source that answers "read-write" for it. Listing rows always works. The Database console's own edits follow the same access. The module reads the access when it starts, so a change made in the file, a revocation included, applies after a restart. A change made with the Data browser's access switch, in development, writes the file and applies at once.

antelope.config.ts ts
"dms-database": {
  config: {
    externalConnections: {
      erp: { access: "read-write" },
      legacy: { access: "read" },
    },
  },
},

Schema labels

A schema label is the coloured badge shown next to a schema in the pickers, cards and lists. The module resolves it in this order:

  1. An entry of schemaLabels whose key equals the schema ID.
  2. The first entry of schemaLabels whose key contains * and matches the schema ID (* matches any run of characters).
  3. A built-in pattern, matched on the start of the ID.
Schema ID starts withLabelColour
app, applicationApplicationinfo
coreCoreprimary
globalGlobalneutral
stagingStagingwarning
review, reviewsReviewssecondary
prod, productionProductionsuccess

color takes a DMS tone: primary, secondary, success, info, warning, error or neutral.

Note

The module has no settings page: everything users change (diagram layouts, notes, saved queries) is data, stored in the module's own dms-database schema.