https://github.com/rongfengliang/cubejs-oceanbase-driver
cubejs-oceanbase-driver
https://github.com/rongfengliang/cubejs-oceanbase-driver
cube nodejs oceanbase
Last synced: about 2 months ago
JSON representation
cubejs-oceanbase-driver
- Host: GitHub
- URL: https://github.com/rongfengliang/cubejs-oceanbase-driver
- Owner: rongfengliang
- Created: 2023-02-26T14:28:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-28T15:49:49.000Z (over 3 years ago)
- Last Synced: 2025-02-23T13:58:57.634Z (over 1 year ago)
- Topics: cube, nodejs, oceanbase
- Language: TypeScript
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# oceanbase-cubejs-driver
## Usage
* cube.js
```code
// Cube.js configuration options: https://cube.dev/docs/config
const {OceanBaseQuery,OceanBaseDriver} = require("oceanbase-cubejs-driver")
module.exports = {
dialectFactory: (dataSource) => {
// need config datasource for multitenant env
return OceanBaseQuery
},
dbType: ({ dataSource } = {}) => {
return "oceanbase"
},
driverFactory: ({ dataSource } = {}) => {
return new OceanBaseDriver({
host: xxxxxx,
port:xxxx,
database: xxxx,
user:xxx,
password: xxxx
})
}
};
```