Skip to content

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
1
2
3
4
5
6
7
{
  "host": "127.0.0.1",
  "port": "3306",
  "user": "john_doe",
  "password": "yourpassword",
  "database": "foobar"
}

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

MySQL Model properties example
1
2
3
{
  "tableName": "foobar"
}

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

MySQL Attribute properties example
1
2
3
4
{
  "columnName": "foo", 
  "columnType": "VARCHAR(30)"
}

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.