UNPKG

433 BJavaScriptView Raw
1'use strict'
2
3const memory = require('mygreat/adaptors/in-memory')
4
5module.exports = async () => ({
6 local: memory([
7 {
8 name: '01_foo',
9 content: {
10 up: async (db) => { },
11 down: async (db) => { }
12 }
13 },
14 ]),
15 remote: memory([
16 {
17 name: 'f769ae4d-cf75-4831-a440-49970c293fae',
18 content: [ '01_foo' ]
19 }
20 ]),
21 setup: () => {
22 return new Database('connection-string')
23 }
24})