liquid-funding/app/db.js

22 lines
422 B
JavaScript

import { Database } from '@nozbe/watermelondb'
import LokiJSAdapter from '@nozbe/watermelondb/adapters/lokijs'
import schema from './model/schema'
import LpEvent from './model/lpEvents'
import Profiles from './model/profiles'
const adapter = new LokiJSAdapter({
schema,
})
const database = new Database({
adapter,
modelClasses: [
LpEvent,
Profiles
],
actionsEnabled: true,
})
export default database