@z1/preset-feathers-server-sql

0.5.35 • Public • Published

Z1 Preset Feathers Server SQL

Documentation under construction.

Dependencies

Usage

Install

yarn add @z1/preset-feathers-server-sql

Import

import {  
  Knex,
  FeathersKnex,
  Sequelize,
  FeathersSequelize
} from '@z1/preset-feathers-server-sql'

Example

var knex = Knex({
  client: 'mysql',
  connection: {
    host : '127.0.0.1',
    user : 'your_database_user',
    password : 'your_database_password',
    database : 'myapp_test'
  }
});

app.use(`/${path}`, FeathersKnex(
  { Model, name, id, events, paginate })
)

const sequelize = new Sequelize('sqlite::memory:');

app.use(`/${path}`, FeathersSequelize(
  { Model, id, events, paginate })
)


Readme

Keywords

none

Package Sidebar

Install

npm i @z1/preset-feathers-server-sql

Weekly Downloads

14

Version

0.5.35

License

MIT

Unpacked Size

10.7 kB

Total Files

4

Last publish

Collaborators

  • nubuck