MoneyDB.js 295 Bytes
Newer Older
Soo Hyun Kim's avatar
Soo Hyun Kim committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { DEBUG, enablePromise, openDatabase } from 'react-native-sqlite-storage';

DEBUG(true);
enablePromise(true);

const getDb = async () => {
  return await openDatabase({
      name: 'MyMoney',
      location: 'default',
      createFromLocation: '~MyMoney.db',
  })
}

export default getDb