17 lines
352 B
JavaScript
17 lines
352 B
JavaScript
|
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,
|
||
|
})
|