ueberdb2 4.2.63 → 4.2.74

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,109 +1,109 @@
1
- import { Settings } from './lib/AbstractDatabase';
2
- import Cassandra_db from './databases/cassandra_db';
3
- import Couch_db from './databases/couch_db';
4
- import Dirty_db from './databases/dirty_db';
5
- import Dirty_git_db from './databases/dirty_git_db';
6
- import Elasticsearch_db from './databases/elasticsearch_db';
7
- import MemoryDB from './databases/memory_db';
8
- import Mock_db from './databases/mock_db';
9
- import Mongodb_db from './databases/mongodb_db';
10
- import MSSQL from './databases/mssql_db';
11
- import Mysql_db from './databases/mysql_db';
12
- import Postgres_db from './databases/postgres_db';
13
- import RedisDB from './databases/redis_db';
14
- import Rethink_db from './databases/rethink_db';
15
- import SQLiteDB from './databases/sqlite_db';
16
- import SurrealDB from './databases/surrealdb_db';
17
- export declare class Database {
18
- readonly type: any;
19
- readonly dbSettings: any;
20
- readonly wrapperSettings: any | {};
21
- readonly logger: Function | null;
22
- db: any;
23
- metrics: any;
24
- /**
25
- * @param type The type of the database
26
- * @param dbSettings The settings for that specific database type
27
- * @param wrapperSettings
28
- * @param logger Optional logger object. If no logger object is provided no logging will occur.
29
- * The logger object is expected to be a log4js logger object or `console`. A logger object
30
- * from another logging library should also work, but performance may be reduced if the logger
31
- * object does not have is${Level}Enabled() methods (isDebugEnabled(), etc.).
32
- */
33
- constructor(type: undefined | string, dbSettings: Settings | null | string, wrapperSettings?: null | {}, logger?: any);
34
- /**
35
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
36
- */
37
- init(callback?: null): Promise<any>;
38
- initDB(): Mysql_db | Postgres_db | SQLiteDB | Mongodb_db | RedisDB | Cassandra_db | Dirty_db | Dirty_git_db | Elasticsearch_db | MemoryDB | Mock_db | MSSQL | Rethink_db | Couch_db | SurrealDB;
39
- /**
40
- * Wrapper functions
41
- */
42
- /**
43
- * Deprecated synonym of flush().
44
- *
45
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
46
- */
47
- doShutdown(callback?: null): any;
48
- /**
49
- * Writes any unsaved changes to the underlying database.
50
- *
51
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
52
- */
53
- flush(callback?: null): any;
54
- /**
55
- * @param key
56
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
57
- */
58
- get(key: string, callback?: null): any;
59
- /**
60
- * @param key
61
- * @param notKey
62
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
63
- */
64
- findKeys(key: string, notKey: string, callback?: null): any;
65
- /**
66
- * Removes an entry from the database if present.
67
- *
68
- * @param key
69
- * @param cb Deprecated. Node-style callback. Called when the write has been committed to the
70
- * underlying database driver. If null, a Promise is returned.
71
- * @param deprecated Deprecated callback that is called just after cb. Ignored if cb is null.
72
- */
73
- remove(key: string, cb?: null, deprecated?: null): any;
74
- /**
75
- * Adds or changes the value of an entry.
76
- *
77
- * @param key
78
- * @param value
79
- * @param cb Deprecated. Node-style callback. Called when the write has been committed to the
80
- * underlying database driver. If null, a Promise is returned.
81
- * @param deprecated Deprecated callback that is called just after cb. Ignored if cb is null.
82
- */
83
- set(key: string, value: string, cb?: null, deprecated?: null): any;
84
- /**
85
- * @param key
86
- * @param sub
87
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
88
- */
89
- getSub(key: string, sub: string, callback?: null): any;
90
- /**
91
- * Adds or changes a subvalue of an entry.
92
- *
93
- * @param key
94
- * @param sub
95
- * @param value
96
- * @param cb Deprecated. Node-style callback. Called when the write has been committed to the
97
- * underlying database driver. If null, a Promise is returned.
98
- * @param deprecated Deprecated callback that is called just after cb. Ignored if cb is null.
99
- */
100
- setSub(key: string, sub: string, value: string, cb?: null, deprecated?: null): any;
101
- /**
102
- * Flushes unwritten changes then closes the connection to the underlying database. After this
103
- * returns, any future call to a method on this object may result in an error.
104
- *
105
- * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
106
- */
107
- close(callback?: null): any;
108
- }
1
+ import { Settings } from './lib/AbstractDatabase';
2
+ import Cassandra_db from './databases/cassandra_db';
3
+ import Couch_db from './databases/couch_db';
4
+ import Dirty_db from './databases/dirty_db';
5
+ import Dirty_git_db from './databases/dirty_git_db';
6
+ import Elasticsearch_db from './databases/elasticsearch_db';
7
+ import MemoryDB from './databases/memory_db';
8
+ import Mock_db from './databases/mock_db';
9
+ import Mongodb_db from './databases/mongodb_db';
10
+ import MSSQL from './databases/mssql_db';
11
+ import Mysql_db from './databases/mysql_db';
12
+ import Postgres_db from './databases/postgres_db';
13
+ import RedisDB from './databases/redis_db';
14
+ import Rethink_db from './databases/rethink_db';
15
+ import SQLiteDB from './databases/sqlite_db';
16
+ import SurrealDB from './databases/surrealdb_db';
17
+ export declare class Database {
18
+ readonly type: any;
19
+ readonly dbSettings: any;
20
+ readonly wrapperSettings: any | {};
21
+ readonly logger: Function | null;
22
+ db: any;
23
+ metrics: any;
24
+ /**
25
+ * @param type The type of the database
26
+ * @param dbSettings The settings for that specific database type
27
+ * @param wrapperSettings
28
+ * @param logger Optional logger object. If no logger object is provided no logging will occur.
29
+ * The logger object is expected to be a log4js logger object or `console`. A logger object
30
+ * from another logging library should also work, but performance may be reduced if the logger
31
+ * object does not have is${Level}Enabled() methods (isDebugEnabled(), etc.).
32
+ */
33
+ constructor(type: undefined | string, dbSettings: Settings | null | string, wrapperSettings?: null | {}, logger?: any);
34
+ /**
35
+ * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
36
+ */
37
+ init(callback?: null): Promise<any>;
38
+ initDB(): Mysql_db | Postgres_db | SQLiteDB | Mongodb_db | RedisDB | Cassandra_db | Dirty_db | Dirty_git_db | Elasticsearch_db | MemoryDB | Mock_db | MSSQL | Rethink_db | Couch_db | SurrealDB;
39
+ /**
40
+ * Wrapper functions
41
+ */
42
+ /**
43
+ * Deprecated synonym of flush().
44
+ *
45
+ * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
46
+ */
47
+ doShutdown(callback?: null): any;
48
+ /**
49
+ * Writes any unsaved changes to the underlying database.
50
+ *
51
+ * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
52
+ */
53
+ flush(callback?: null): any;
54
+ /**
55
+ * @param key
56
+ * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
57
+ */
58
+ get(key: string, callback?: null): any;
59
+ /**
60
+ * @param key
61
+ * @param notKey
62
+ * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
63
+ */
64
+ findKeys(key: string, notKey: string, callback?: null): any;
65
+ /**
66
+ * Removes an entry from the database if present.
67
+ *
68
+ * @param key
69
+ * @param cb Deprecated. Node-style callback. Called when the write has been committed to the
70
+ * underlying database driver. If null, a Promise is returned.
71
+ * @param deprecated Deprecated callback that is called just after cb. Ignored if cb is null.
72
+ */
73
+ remove(key: string, cb?: null, deprecated?: null): any;
74
+ /**
75
+ * Adds or changes the value of an entry.
76
+ *
77
+ * @param key
78
+ * @param value
79
+ * @param cb Deprecated. Node-style callback. Called when the write has been committed to the
80
+ * underlying database driver. If null, a Promise is returned.
81
+ * @param deprecated Deprecated callback that is called just after cb. Ignored if cb is null.
82
+ */
83
+ set(key: string, value: string, cb?: null, deprecated?: null): any;
84
+ /**
85
+ * @param key
86
+ * @param sub
87
+ * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
88
+ */
89
+ getSub(key: string, sub: string, callback?: null): any;
90
+ /**
91
+ * Adds or changes a subvalue of an entry.
92
+ *
93
+ * @param key
94
+ * @param sub
95
+ * @param value
96
+ * @param cb Deprecated. Node-style callback. Called when the write has been committed to the
97
+ * underlying database driver. If null, a Promise is returned.
98
+ * @param deprecated Deprecated callback that is called just after cb. Ignored if cb is null.
99
+ */
100
+ setSub(key: string, sub: string, value: string, cb?: null, deprecated?: null): any;
101
+ /**
102
+ * Flushes unwritten changes then closes the connection to the underlying database. After this
103
+ * returns, any future call to a method on this object may result in an error.
104
+ *
105
+ * @param callback - Deprecated. Node-style callback. If null, a Promise is returned.
106
+ */
107
+ close(callback?: null): any;
108
+ }
109
109
  //# sourceMappingURL=index.d.ts.map