mymysql-cubejs-driver
v1.0.0
Published
Cube.js Mysql database driver
Downloads
2
Readme
cube.js mysql driver (some bugfix)
for better support mysql like database (oceanbase....)
Usage
const {MySqlDriver,MySqlQuery} = require("@dalongrong/mymysql-driver")
module.exports = {
dialectFactory: (dataSource) => {
// need config datasource for multitenant env
return MySqlQuery
},
dbType: ({ dataSource } = {}) => {
return "mymysql"
},
driverFactory: ({ dataSource } = {}) => {
return new MySqlDriver({})
}
};