falkordb 6.2.1 → 6.2.2
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.
|
@@ -9,9 +9,9 @@ export interface Client {
|
|
|
9
9
|
configGet(configKey: string): Promise<(string | number)[] | (string | number)[][]>;
|
|
10
10
|
configSet(configKey: string, value: number | string): Promise<void>;
|
|
11
11
|
info(section?: string): Promise<(string | string[])[]>;
|
|
12
|
-
query<T>(graph: string, query: RedisCommandArgument, options?: QueryOptions): Promise<any>;
|
|
12
|
+
query<T>(graph: string, query: RedisCommandArgument, options?: QueryOptions, compact?: boolean): Promise<any>;
|
|
13
13
|
profile<T>(graph: string, query: RedisCommandArgument): Promise<any>;
|
|
14
|
-
roQuery<T>(graph: string, query: RedisCommandArgument, options?: QueryOptions): Promise<any>;
|
|
14
|
+
roQuery<T>(graph: string, query: RedisCommandArgument, options?: QueryOptions, compact?: boolean): Promise<any>;
|
|
15
15
|
copy<T>(srcGraph: string, destGraph: string): Promise<any>;
|
|
16
16
|
delete(graph: string): Promise<void>;
|
|
17
17
|
explain(graph: string, query: string): Promise<any>;
|
|
@@ -18,7 +18,7 @@ export declare class Cluster implements Client {
|
|
|
18
18
|
falkordb: typeof commands;
|
|
19
19
|
}, RedisFunctions, RedisScripts>>;
|
|
20
20
|
init(falkordb: FalkorDB): Promise<void>;
|
|
21
|
-
query<T>(graph: string, query: RedisCommandArgument, options?: QueryOptions): Promise<{
|
|
21
|
+
query<T>(graph: string, query: RedisCommandArgument, options?: QueryOptions, compact?: boolean): Promise<{
|
|
22
22
|
headers: undefined;
|
|
23
23
|
data: undefined;
|
|
24
24
|
metadata: string[];
|
|
@@ -27,7 +27,7 @@ export declare class Cluster implements Client {
|
|
|
27
27
|
data: (string | number | (string | number | (string | number | (string | number | (string | number | (string | number | (string | number | (string | number | (string | number | (string | number | (string | number | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[];
|
|
28
28
|
metadata: string[];
|
|
29
29
|
}>;
|
|
30
|
-
roQuery<T>(graph: string, query: RedisCommandArgument, options?: QueryOptions): Promise<{
|
|
30
|
+
roQuery<T>(graph: string, query: RedisCommandArgument, options?: QueryOptions, compact?: boolean): Promise<{
|
|
31
31
|
headers: undefined;
|
|
32
32
|
data: undefined;
|
|
33
33
|
metadata: string[];
|
|
@@ -29,11 +29,11 @@ class Cluster {
|
|
|
29
29
|
.on('error', err => falkordb.emit('error', err)) // Forward errors
|
|
30
30
|
.connect();
|
|
31
31
|
}
|
|
32
|
-
async query(graph, query, options) {
|
|
33
|
-
return this.#client.falkordb.query(graph, query, options,
|
|
32
|
+
async query(graph, query, options, compact = true) {
|
|
33
|
+
return this.#client.falkordb.query(graph, query, options, compact);
|
|
34
34
|
}
|
|
35
|
-
async roQuery(graph, query, options) {
|
|
36
|
-
return this.#client.falkordb.roQuery(graph, query, options,
|
|
35
|
+
async roQuery(graph, query, options, compact = true) {
|
|
36
|
+
return this.#client.falkordb.roQuery(graph, query, options, compact);
|
|
37
37
|
}
|
|
38
38
|
async delete(graph) {
|
|
39
39
|
const reply = this.#client.falkordb.delete(graph);
|
|
@@ -12,7 +12,7 @@ export declare class Single implements Client {
|
|
|
12
12
|
protected client: SingleGraphConnection;
|
|
13
13
|
constructor(client: SingleGraphConnection);
|
|
14
14
|
init(falkordb: FalkorDB): Promise<void>;
|
|
15
|
-
query<T>(graph: string, query: RedisCommandArgument, options?: QueryOptions): Promise<{
|
|
15
|
+
query<T>(graph: string, query: RedisCommandArgument, options?: QueryOptions, compact?: boolean): Promise<{
|
|
16
16
|
headers: undefined;
|
|
17
17
|
data: undefined;
|
|
18
18
|
metadata: string[];
|
|
@@ -21,7 +21,7 @@ export declare class Single implements Client {
|
|
|
21
21
|
data: (string | number | (string | number | (string | number | (string | number | (string | number | (string | number | (string | number | (string | number | (string | number | (string | number | (string | number | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[];
|
|
22
22
|
metadata: string[];
|
|
23
23
|
}>;
|
|
24
|
-
roQuery<T>(graph: string, query: RedisCommandArgument, options?: QueryOptions): Promise<{
|
|
24
|
+
roQuery<T>(graph: string, query: RedisCommandArgument, options?: QueryOptions, compact?: boolean): Promise<{
|
|
25
25
|
headers: undefined;
|
|
26
26
|
data: undefined;
|
|
27
27
|
metadata: string[];
|
|
@@ -11,22 +11,22 @@ class Single {
|
|
|
11
11
|
init(falkordb) {
|
|
12
12
|
return Promise.resolve();
|
|
13
13
|
}
|
|
14
|
-
async query(graph, query, options) {
|
|
14
|
+
async query(graph, query, options, compact = true) {
|
|
15
15
|
const reply = this.#usePool ?
|
|
16
16
|
await this.client.executeIsolated(async (isolatedClient) => {
|
|
17
|
-
return isolatedClient.falkordb.query(graph, query, options,
|
|
17
|
+
return isolatedClient.falkordb.query(graph, query, options, compact);
|
|
18
18
|
})
|
|
19
19
|
:
|
|
20
|
-
await this.client.falkordb.query(graph, query, options,
|
|
20
|
+
await this.client.falkordb.query(graph, query, options, compact);
|
|
21
21
|
return reply;
|
|
22
22
|
}
|
|
23
|
-
async roQuery(graph, query, options) {
|
|
23
|
+
async roQuery(graph, query, options, compact = true) {
|
|
24
24
|
const reply = this.#usePool ?
|
|
25
25
|
await this.client.executeIsolated(async (isolatedClient) => {
|
|
26
|
-
return isolatedClient.falkordb.roQuery(graph, query, options,
|
|
26
|
+
return isolatedClient.falkordb.roQuery(graph, query, options, compact);
|
|
27
27
|
})
|
|
28
28
|
:
|
|
29
|
-
await this.client.falkordb.roQuery(graph, query, options,
|
|
29
|
+
await this.client.falkordb.roQuery(graph, query, options, compact);
|
|
30
30
|
return reply;
|
|
31
31
|
}
|
|
32
32
|
async delete(graph) {
|
package/dist/src/graph.js
CHANGED
|
@@ -67,9 +67,9 @@ class Graph {
|
|
|
67
67
|
// DO NOT use directly, use #updateMetadata instead
|
|
68
68
|
async #setMetadata() {
|
|
69
69
|
const [labels, relationshipTypes, propertyKeys] = await Promise.all([
|
|
70
|
-
this.#client.roQuery(this.#name, 'CALL db.labels()'),
|
|
71
|
-
this.#client.roQuery(this.#name, 'CALL db.relationshipTypes()'),
|
|
72
|
-
this.#client.roQuery(this.#name, 'CALL db.propertyKeys()')
|
|
70
|
+
this.#client.roQuery(this.#name, 'CALL db.labels()', undefined, false),
|
|
71
|
+
this.#client.roQuery(this.#name, 'CALL db.relationshipTypes()', undefined, false),
|
|
72
|
+
this.#client.roQuery(this.#name, 'CALL db.propertyKeys()', undefined, false)
|
|
73
73
|
]);
|
|
74
74
|
this.#metadata = {
|
|
75
75
|
labels: this.#cleanMetadataArray(labels.data),
|