git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 8063afb16b2de577b87116ddc34cf98c5b26d67e

Files: 8063afb16b2de577b87116ddc34cf98c5b26d67e / app / service.js

339 bytesRaw
1import knexService from 'feathers-knex'
2import memoryService from 'feathers-memory'
3import { assign } from 'lodash'
4
5function dbService (options) {
6 var db = require('app/db').default
7
8 return knexService(
9 assign(options, {
10 Model: db
11 })
12 )
13}
14
15export default process.env.NODE_ENV === 'test' ?
16 memoryService :
17 dbService
18

Built with git-ssb-web