SingleStore¶
| DBMS Type | Handled as MySQL |
| Driver | SingleStore ODBC driver. Install it on the Stelo VM. |
| Connection string | The SingleStore template: SERVER=myhostip;PORT=3306;DATABASE=mydb;OPTIONS=70254610;CHARSET=utf8. Keep OPTIONS: it's a bit mask that sets FOUND_ROWS, NO_PROMPT, NO_CACHE, FORWARD_ONLY and MULTIPLE_STATEMENTS. |
| Apply methods | Batch and Sequence. The Data Replicator Manager also offers Merge, because the type is MySQL: ask Stelo Support before you use it with SingleStore. |
Docker
The SQDR container doesn't include the SingleStore ODBC driver: ask Stelo Support.
The Replicator Service handles SingleStore as MySQL: the SQL it writes and the data type mapping are MySQL's (see Per-database notes), with the differences below.
Prepare the database. For example, with SingleStore's MySQL-style accounts:
CREATE USER 'sqdruser'@'%' IDENTIFIED BY 'MyPassword1';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX ON mydb.* TO 'sqdruser'@'%';
Replace sqdruser, the password and mydb. CREATE, DROP, ALTER and INDEX let the Replicator Service create,
re-create and change the tables and their indexes. Merge also creates a permanent work table in the connection's
default database (see The merge table).
Data types. SingleStore enum, set, json, geography and geographypoint columns are created only for
source columns of the same type. timestamp holds up to 6 fractional digits; datetime is treated as having none.