Dore PostgreSQL Protocol
Protocol name: postgres
Manifest fields
| Field in Manifest | What it represents |
|---|---|
| Datastore | Database |
| Model | Table |
| Attribute | Column |
Datastore Properties
Manifest path: $.datastores[*].properties
Example
| Postgres Datastore properties example | |
|---|---|
Fields
-
host(string) [required]Manifest path:
$.datastores[*].properties.hostPostgreSQL host.
-
port(string) [required]Manifest path:
$.datastores[*].properties.portPostgreSQL port.
-
user(string) [required]Manifest path:
$.datastores[*].properties.userPostgreSQL username for connecting to the database.
-
password(string) [required]Manifest path:
$.datastores[*].properties.passwordPostgreSQL password for connecting to the database.
-
database(string) [required]Manifest path:
$.datastores[*].properties.databaseName of the PostgreSQL database to connect to.
Model Properties
Manifest path: $.models[*].properties
Example
Fields
-
tableName(string) [required]Manifest path:
$.models[*].properties.tableNameName of the PostgreSQL table that the model corresponds to.
While interacting with the PostgreSQL table corresponding to the model, Dore uses this
tableNameto refer to the model in the PostgreSQL database. -
schemaName(string) [required]Manifest path:
$.models[*].properties.schemaNameName of the PostgreSQL schema that the model corresponds to.
While interacting with the PostgreSQL table corresponding to the model, Dore uses this
schemaNameto refer to the schema in the PostgreSQL database.
Attribute Properties
Manifest path: $.models[*].attributes[*].properties
Example
Fields
-
columnName(string) [required]Manifest path:
$.models[*].attributes[*].properties.columnNameName of the Postgres column that the attribute corresponds to.
While creating tables in Postgres for Postgres bound models in the manifest, Dore infers the required column name from this field's value.
-
columnType(string) [required]Manifest path:
$.models[*].attributes[*].properties.columnTypeData type of the Postgres column that the attribute corresponds to.
All data types supported by Postgres are supported here.