-
Notifications
You must be signed in to change notification settings - Fork 0
/
ponyfill_memory.ts
19 lines (16 loc) · 760 Bytes
/
ponyfill_memory.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { configureSQLiteDB, createIndexedDB } from "./lib/shim.ts";
export * from "./lib/indexeddb.ts";
configureSQLiteDB({ memory: true });
const api = createIndexedDB();
export const IDBCursor = api.IDBCursor;
export const IDBCursorWithValue = api.IDBCursorWithValue;
export const IDBDatabase = api.IDBDatabase;
export const IDBFactory = api.IDBFactory;
export const IDBIndex = api.IDBIndex;
export const IDBKeyRange = api.IDBKeyRange;
export const IDBObjectStore = api.IDBObjectStore;
export const IDBOpenDBRequest = api.IDBOpenDBRequest;
export const IDBRequest = api.IDBRequest;
export const IDBTransaction = api.IDBTransaction;
export const IDBVersionChangeEvent = api.IDBVersionChangeEvent;
export const indexedDB: typeof IDBFactory = api.indexedDB;