liquid-funding/app/db.js

20 lines
368 B
JavaScript
Raw Normal View History

2019-01-15 14:18:04 +00:00
import { Database } from '@nozbe/watermelondb'
import LokiJSAdapter from '@nozbe/watermelondb/adapters/lokijs'
import schema from './model/schema'
2019-01-15 18:32:55 +00:00
import LpEvent from './model/lpEvents'
2019-01-15 14:18:04 +00:00
const adapter = new LokiJSAdapter({
schema,
})
const database = new Database({
adapter,
modelClasses: [
2019-01-15 18:32:55 +00:00
LpEvent
2019-01-15 14:18:04 +00:00
],
actionsEnabled: true,
})
2019-01-15 18:32:55 +00:00
export default database