Server Backup Client interface (#1813)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2022-05-23 22:53:33 +07:00
committed by GitHub
parent 37abd77e44
commit bc5f9c0631
40 changed files with 1057 additions and 130 deletions
+23 -1
View File
@@ -13,7 +13,18 @@
// limitations under the License.
//
import type { Class, Doc, DocumentQuery, FindOptions, FindResult, Ref, Tx, TxResult } from '@anticrm/core'
import type {
Class,
Doc,
DocumentQuery,
Domain,
FindOptions,
FindResult,
Ref,
StorageIterator,
Tx,
TxResult
} from '@anticrm/core'
import { Hierarchy, TxDb } from '@anticrm/core'
import builder from '@anticrm/model-all'
import type { TxAdapter } from '@anticrm/server-core'
@@ -48,6 +59,17 @@ class InMemoryTxAdapter implements TxAdapter {
}
async close (): Promise<void> {}
find (domain: Domain): StorageIterator {
return {
next: async () => await Promise.reject(new Error('Not implemented')),
close: async () => {}
}
}
async load (domain: Domain, docs: Ref<Doc>[]): Promise<Doc[]> {
return []
}
}
/**