Documentation under construction.
yarn add @z1/preset-feathers-server-sql
import {
Knex,
FeathersKnex,
Sequelize,
FeathersSequelize
} from '@z1/preset-feathers-server-sql'
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 })
)