ueberdb2 4.1.28 → 4.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,85 +1 @@
1
- import { Settings } from './lib/AbstractDatabase';
2
- export declare const Database: {
3
- new (type: undefined | string, dbSettings: Settings | null | string, wrapperSettings?: null | {}, logger?: any): {
4
- readonly type: any;
5
- dbModule: any;
6
- readonly dbSettings: any;
7
- readonly wrapperSettings: any | {};
8
- readonly logger: Function | null;
9
- db: any;
10
- metrics: any;
11
- /**
12
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
13
- */
14
- init(callback?: null): Promise<any>;
15
- /**
16
- * Wrapper functions
17
- */
18
- /**
19
- * Deprecated synonym of flush().
20
- *
21
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
22
- */
23
- doShutdown(callback?: null): any;
24
- /**
25
- * Writes any unsaved changes to the underlying database.
26
- *
27
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
28
- */
29
- flush(callback?: null): any;
30
- /**
31
- * @param key
32
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
33
- */
34
- get(key: string, callback?: null): any;
35
- /**
36
- * @param key
37
- * @param notKey
38
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
39
- */
40
- findKeys(key: string, notKey: string, callback?: null): any;
41
- /**
42
- * Removes an entry from the database if present.
43
- *
44
- * @param key
45
- * @param cb Deprecated. Node-style callback. Called when the write has been committed to the
46
- * underlying database driver. If null, a Promise is returned.
47
- * @param deprecated Deprecated callback that is called just after cb. Ignored if cb is null.
48
- */
49
- remove(key: string, cb?: null, deprecated?: null): any;
50
- /**
51
- * Adds or changes the value of an entry.
52
- *
53
- * @param key
54
- * @param value
55
- * @param cb Deprecated. Node-style callback. Called when the write has been committed to the
56
- * underlying database driver. If null, a Promise is returned.
57
- * @param deprecated Deprecated callback that is called just after cb. Ignored if cb is null.
58
- */
59
- set(key: string, value: string, cb?: null, deprecated?: null): any;
60
- /**
61
- * @param key
62
- * @param sub
63
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
64
- */
65
- getSub(key: string, sub: string, callback?: null): any;
66
- /**
67
- * Adds or changes a subvalue of an entry.
68
- *
69
- * @param key
70
- * @param sub
71
- * @param value
72
- * @param cb Deprecated. Node-style callback. Called when the write has been committed to the
73
- * underlying database driver. If null, a Promise is returned.
74
- * @param deprecated Deprecated callback that is called just after cb. Ignored if cb is null.
75
- */
76
- setSub(key: string, sub: string, value: string, cb?: null, deprecated?: null): any;
77
- /**
78
- * Flushes unwritten changes then closes the connection to the underlying database. After this
79
- * returns, any future call to a method on this object may result in an error.
80
- *
81
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
82
- */
83
- close(callback?: null): any;
84
- };
85
- };
1
+ export * from './index'