Databases
Use databases to sync service-owned schema files into UiGraph.
Supported dialects
postgresmysqlsqlitedynamodbmongodbother
Minimal config
databases:
- name: Core PostgreSQL Database
dbType: PostgreSQL
dialect: postgres
schemaPath: ./postgresql-core.sql
Each item requires:
namedialectschemaPath
Optional:
dbType
What the CLI does
For each database entry, the CLI:
- validates the dialect
- checks that
schemaPathexists - reads the schema file as raw content
- sends the file content and database metadata to the gateway
If the schema file is missing, validation fails before sync.
Multi-database example
databases:
- name: Core MySQL Database
dbType: MySQL
dialect: mysql
schemaPath: ./mysql-core.sql
- name: Local SQLite Database
dbType: SQLite
dialect: sqlite
schemaPath: ./sqlite-local.sql
- name: Event DynamoDB Database
dbType: DynamoDB
dialect: dynamodb
schemaPath: ./dynamodb-events.json
- name: Event MongoDB Database
dbType: MongoDB
dialect: mongodb
schemaPath: ./mongodb-events.json
Recommended file formats
- SQL dialects:
.sql - DynamoDB or MongoDB:
.json
Recommended usage
- keep schema files in version control
- use stable file paths so CI remains predictable
- choose
dbTypefor clearer display naming when needed - sync one entry per logical database, not one catch-all file for unrelated systems
Keep schema files updated together with source changes so the visual model stays useful.