ueberdb2 5.0.6 → 5.0.14

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/README.md CHANGED
@@ -25,6 +25,7 @@ writes are done in a bulk. This can be turned off.
25
25
  * Postgres (single connection and with connection pool)
26
26
  * Redis
27
27
  * Rethink
28
+ * `rustydb`
28
29
  * SQLite
29
30
  * Surrealdb
30
31
  *
@@ -211,18 +212,19 @@ const ueberdb = require('ueberdb2');
211
212
 
212
213
  | | Get | Set | findKeys | Remove | getSub | setSub | doBulk | CI Coverage |
213
214
  |---------------|-----|-----|----------|--------|--------|--------|--------|-------------|
214
- | cassandra | ✓ | ✓ | * | ✓ | ✓ | ✓ | ✓ | |
215
- | couchdb | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
215
+ | cassandra | ✓ | ✓ | * | ✓ | ✓ | ✓ | ✓ ||
216
+ | couchdb | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ ||
216
217
  | dirty | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | ✓ |
217
- | dirty_git | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | |
218
- | elasticsearch | ✓ | ✓ | * | ✓ | ✓ | ✓ | ✓ | |
219
- | maria | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
218
+ | dirty_git | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||
219
+ | elasticsearch | ✓ | ✓ | * | ✓ | ✓ | ✓ | ✓ ||
220
+ | maria | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ ||
220
221
  | mysql | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
221
222
  | postgres | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
222
223
  | redis | ✓ | ✓ | * | ✓ | ✓ | ✓ | ✓ | ✓ |
223
- | rethinkdb | ✓ | ✓ | * | ✓ | ✓ | ✓ | ✓ |
224
+ | rethinkdb | ✓ | ✓ | * | ✓ | ✓ | ✓ | ✓ |
225
+ | rustydb | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
224
226
  | sqlite | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
225
- | surrealdb | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
227
+ | surrealdb | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ ||
226
228
 
227
229
  ## Limitations
228
230
 
@@ -14,9 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import AbstractDatabase, { Settings } from '../lib/AbstractDatabase';
17
- import Surreal from 'surrealdb.js';
17
+ import Surreal from 'surrealdb';
18
18
  import { BulkObject } from "./cassandra_db";
19
- import { QueryResult } from "surrealdb.js/script/types";
19
+ import { QueryResult } from "surrealdb";
20
20
  type StoreVal = {
21
21
  key: string;
22
22
  value: string;
@@ -33,7 +33,7 @@ export default class SurrealDB extends AbstractDatabase {
33
33
  transformWildcardNegative(key: string, keyExpr: string): string;
34
34
  transformResult(res: QueryResult<StoreVal[]>[], originalKey: string): string[];
35
35
  set(key: string, value: string): Promise<null | undefined>;
36
- remove(key: string): Promise<import("surrealdb.js/script/types").RawQueryResult[] | null>;
36
+ remove(key: string): Promise<unknown[] | null>;
37
37
  doBulk(bulk: BulkObject[]): Promise<null | undefined>;
38
38
  close(): Promise<null | undefined>;
39
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"surrealdb_db.d.ts","sourceRoot":"","sources":["../../databases/surrealdb_db.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,gBAAgB,EAAE,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AACnE,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AAKtD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