Dore MySQL Protocol
Protocol name: mysql
Manifest fields
| Field in Manifest | What it represents |
|---|---|
| Datastore | Database |
| Model | Table |
| Attribute | Column |
Datastore Properties
Manifest path: $.datastores[*].properties
Example
| MySQL Datastore properties example | |
|---|---|
Fields
-
host(string) [required]Manifest path:
$.datastores[*].properties.hostMySQL host.
-
port(string) [required]Manifest path:
$.datastores[*].properties.portMySQL port.
-
user(string) [required]Manifest path:
$.datastores[*].properties.userMySQL username for connecting to the database.
-
password(string) [required]Manifest path:
$.datastores[*].properties.passwordMySQL password for connecting to the database.
-
database(string) [required]Manifest path:
$.datastores[*].properties.databaseName of the MySQL database to connect to.
Model Properties
Manifest path: $.models[*].properties
Example
Fields
-
tableName(string) [required]Manifest path:
$.models[*].properties.tableNameName of the MySQL table that the model corresponds to.
While interacting with the MySQL table corresponding to the model, Dore uses this
tableNameto refer to the model in the MySQL database.
Attribute Properties
Manifest path: $.models[*].attributes[*].properties
Example
Fields
-
columnName(string) [required]Manifest path:
$.models[*].attributes[*].properties.columnNameName of the MySQL column that the attribute corresponds to.
While creating tables in MySQL for MySQL 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 MySQL column that the attribute corresponds to.
All data types supported by MySQL are supported here.