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.host
MySQL host.
-
port
(string) [required]Manifest path:
$.datastores[*].properties.port
MySQL port.
-
user
(string) [required]Manifest path:
$.datastores[*].properties.user
MySQL username for connecting to the database.
-
password
(string) [required]Manifest path:
$.datastores[*].properties.password
MySQL password for connecting to the database.
-
database
(string) [required]Manifest path:
$.datastores[*].properties.database
Name of the MySQL database to connect to.
Model Properties
Manifest path: $.models[*].properties
Example
Fields
-
tableName
(string) [required]Manifest path:
$.models[*].properties.tableName
Name of the MySQL table that the model corresponds to.
While interacting with the MySQL table corresponding to the model, Dore uses this
tableName
to 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.columnName
Name 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.columnType
Data type of the MySQL column that the attribute corresponds to.
All data types supported by MySQL are supported here.