Now we have ODBC .. that accepts various connection string (including SQLite, MySQL,...) And EiffelStore+MySQL. Updated sql scripts to work with MySQL, and SQLite. Added a sql_statement (s: STRING): STRING that converts ROC sql statement to fit the underlying database engine. mostly to adapt incompatibilities such as AUTO_INCREMENT for MySQL and AUTOINCREMENT for SQLite by default SQL script should be written following MySQL SQL syntax. Warning: to use ODBC persistence driver, it has to be installed on the target machine.
40 lines
872 B
JSON
40 lines
872 B
JSON
{
|
|
"database": {
|
|
"datasource": {
|
|
"driver": "odbc",
|
|
"environment": "odbc-sqlite"
|
|
},
|
|
"environments": {
|
|
"odbc-sqlite": {
|
|
"connection_string":"Driver=SQLite3 ODBC Driver;Database=./site/database.sqlite;LongNames=0;Timeout=1000;NoTXN=0;SyncPragma=NORMAL;StepAPI=0;"
|
|
},
|
|
"odbc-mysql": {
|
|
"connection_string":"Driver=mysql ODBC Driver;Server=localhost;Port=3306;Database=roc;Uid=roc;Pwd=roc;"
|
|
},
|
|
"mysql": {
|
|
"connection_string":"Driver=mysql;Server=localhost;Port=3306;Database=roc;Uid=roc;Pwd=roc;"
|
|
},
|
|
"development": {
|
|
"connection_string":"Server=localhost;Port=3306;Database=cms_dev;Uid=root;Pwd=;"
|
|
},
|
|
"production": {
|
|
"connection_string":""
|
|
}
|
|
}
|
|
},
|
|
"smtp": {
|
|
"server": "localhost"
|
|
},
|
|
"logger": {
|
|
"level":"error",
|
|
"type":"stderr",
|
|
"backup_count":"4"
|
|
},
|
|
"server": {
|
|
"mode":"html"
|
|
}
|
|
|
|
}
|
|
|
|
|