From 250069d86097a966366d21e447f6c3fcc70659bd Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 13 Oct 2016 02:23:24 +0200 Subject: refactoring / refresh WIP --- lib/wallet/query.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/wallet/query.ts') diff --git a/lib/wallet/query.ts b/lib/wallet/query.ts index 77a4f8e35..fa78fe640 100644 --- a/lib/wallet/query.ts +++ b/lib/wallet/query.ts @@ -24,10 +24,6 @@ "use strict"; -export function Query(db: IDBDatabase) { - return new QueryRoot(db); -} - /** * Stream that can be filtered, reduced or joined * with indices. @@ -265,7 +261,7 @@ class IterQueryStream extends QueryStreamBase { } -class QueryRoot { +export class QueryRoot { private work: ((t: IDBTransaction) => void)[] = []; private db: IDBDatabase; private stores = new Set(); @@ -332,7 +328,7 @@ class QueryRoot { /** * Get one object from a store by its key. */ - get(storeName: any, key: any): Promise { + get(storeName: any, key: any): Promise { if (key === void 0) { throw Error("key must not be undefined"); } -- cgit v1.2.3