Skip to content

eldridge/js-data-sql

This branch is 2 commits ahead of js-data/js-data-sql:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cc5440f · Jan 15, 2020
Aug 18, 2017
Aug 18, 2017
Jan 15, 2020
Jan 15, 2020
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Jan 25, 2016
Jan 15, 2020
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017

Repository files navigation

js-data logo

js-data-sql

Slack NPM Tests Downloads Coverage

A Postgres/MySQL/MariaDB/SQLite3 adapter for the JSData Node.js ORM.

Installation

npm install --save js-data js-data-sql

And then you also need to install one of the following:

  • pg
  • sqlite3
  • mysql
  • mysql2
  • mariasql
  • strong-oracle
  • oracle
  • mssql

Usage

import { SqlAdapter } from 'js-data-sql';

// Create an instance of SqlAdapter
const adapter = new SqlAdapter({
  knexOpts: {
    client: 'mysql'
  }
});

// Other JSData setup hidden

// Register the adapter instance
store.registerAdapter('sql', adapter, { default: true });

JSData + SQL Tutorial

Start with the JSData + SQL tutorial or checkout the API Reference Documentation.

Need help?

Please post a question on Stack Overflow. This is the preferred method.

You can also chat with folks on the Slack Channel. If you end up getting your question answered, please still consider consider posting your question to Stack Overflow (then possibly answering it yourself). Thanks!

Want to contribute?

Awesome! You can get started over at the Contributing guide.

Thank you!

License

The MIT License (MIT)

Copyright (c) 2014-2017 js-data-sql project authors

About

Postgres/MySQL/MariaDB/SQLite3 adapter for js-data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%