liquid-funding/app/db.js

17 lines
352 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'
const adapter = new LokiJSAdapter({
schema,
})
const database = new Database({
adapter,
modelClasses: [
// Post, // ⬅️ You'll add Models to Watermelon here
],
actionsEnabled: true,
})