@fxjs-lerna/db-driver
TypeScript icon, indicating that this package has built-in type declarations

0.0.8-alpha.0 • Public • Published

Fibjs Orm Drivers

NPM version Build Status Build status

Install

npm install @fxjs/db-driver

Built-in supported drivers

  • MySQL
  • SQLite
  • Redis

Support via Adapters

  • @fxjs/db-driver-tdengine
  • @fxjs/db-driver-elasticsearch
  • @fxjs/db-driver-mongodb

Example

const DbDriver   = require("@fxjs/db-driver");

// use mysql protocol
const driver = new DbDrivers("mysql://username:password@localhost/database");

Test

To test, first make sure you have development dependencies installed. Go to the root folder and do:

npm install

Then, just run the tests.

npm test

If you have a supported database server and want to test against it, first install the module:

And then run:

URI=mysql://username:password@localhost/database fibjs test/run-db

Credits

This repo is checked out from Diogo Resende's node-sql-ddl-sync, which is one part of orm, and orm is the original source of @fxjs/orm. Thx a lot to him and his partner.

Package Sidebar

Install

npm i @fxjs-lerna/db-driver

Weekly Downloads

2

Version

0.0.8-alpha.0

License

MIT

Unpacked Size

35.5 kB

Total Files

14

Last publish

Collaborators

  • richardo2016