This is a generic template to create a driver for tsbean-orm.
Modify driver.ts
to implement the driver functionalities depending on the data source this driver supports.
npm install --save [driver-name-here]
To compile the driver type:
npm run build
The javascript files are stored in the dist
folder.
The documentation is stored in the docs
folder.
import { DataSourceDriver, DataSource } from "tsbean-orm";
import { TemplateDriver } from "tsbean-driver-template"
const mySource = TemplateDriver.createDataSource({} /* Options */);
DataSource.set(DataSource.DEFAULT, mySource);