@ultipa-graph/ultipa-driver 5.1.5-s5.2 → 6.0.4
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/LICENSE +21 -0
- package/README.md +65 -0
- package/dist/client.d.ts +196 -0
- package/dist/client.js +394 -0
- package/dist/config.d.ts +65 -0
- package/dist/config.js +135 -0
- package/dist/connection.d.ts +30 -0
- package/dist/connection.js +190 -0
- package/dist/errors.d.ts +99 -0
- package/dist/errors.js +237 -0
- package/dist/index.d.ts +14 -5
- package/dist/index.js +88 -39
- package/dist/printers.d.ts +33 -0
- package/dist/printers.js +312 -0
- package/dist/proto/gqldb.proto +689 -0
- package/dist/response.d.ts +256 -0
- package/dist/response.js +723 -0
- package/dist/services/admin-service.d.ts +44 -0
- package/dist/services/admin-service.js +168 -0
- package/dist/services/bulk-import-service.d.ts +35 -0
- package/dist/services/bulk-import-service.js +105 -0
- package/dist/services/converters.d.ts +57 -0
- package/dist/services/converters.js +254 -0
- package/dist/services/data-service.d.ts +44 -0
- package/dist/services/data-service.js +206 -0
- package/dist/services/graph-service.d.ts +32 -0
- package/dist/services/graph-service.js +127 -0
- package/dist/services/health-service.d.ts +50 -0
- package/dist/services/health-service.js +78 -0
- package/dist/services/index.d.ts +13 -0
- package/dist/services/index.js +30 -0
- package/dist/services/query-service.d.ts +39 -0
- package/dist/services/query-service.js +112 -0
- package/dist/services/service-context.d.ts +39 -0
- package/dist/services/service-context.js +73 -0
- package/dist/services/session-service.d.ts +24 -0
- package/dist/services/session-service.js +66 -0
- package/dist/services/transaction-service.d.ts +33 -0
- package/dist/services/transaction-service.js +100 -0
- package/dist/services.d.ts +28 -0
- package/dist/services.js +122 -0
- package/dist/session.d.ts +45 -0
- package/dist/session.js +75 -0
- package/dist/transaction.d.ts +42 -0
- package/dist/transaction.js +89 -0
- package/dist/types/bulk_import.d.ts +53 -0
- package/dist/types/bulk_import.js +6 -0
- package/dist/types/data_types.d.ts +116 -0
- package/dist/types/data_types.js +122 -0
- package/dist/types/enums.d.ts +59 -0
- package/dist/types/enums.js +67 -0
- package/dist/types/graph_models.d.ts +54 -0
- package/dist/types/graph_models.js +6 -0
- package/dist/types/index.d.ts +11 -5
- package/dist/types/index.js +36 -37
- package/dist/types/metadata.d.ts +107 -0
- package/dist/types/metadata.js +6 -0
- package/dist/types/schema.d.ts +31 -0
- package/dist/types/schema.js +6 -0
- package/dist/types/typed_value.d.ts +25 -0
- package/dist/types/typed_value.js +1176 -0
- package/dist/types/wrappers.d.ts +23 -0
- package/dist/types/wrappers.js +39 -0
- package/dist/types.d.ts +7 -0
- package/dist/types.js +24 -0
- package/package.json +50 -63
- package/dist/connection/connection.final.d.ts +0 -14
- package/dist/connection/connection.final.js +0 -94
- package/dist/connection/connection.final.js.map +0 -1
- package/dist/connection/connection.pool.d.ts +0 -21
- package/dist/connection/connection.pool.js +0 -103
- package/dist/connection/connection.pool.js.map +0 -1
- package/dist/connection/extra/algos/algo.extra.d.ts +0 -34
- package/dist/connection/extra/algos/algo.extra.js +0 -69
- package/dist/connection/extra/algos/algo.extra.js.map +0 -1
- package/dist/connection/extra/algos/algo.utils.d.ts +0 -3
- package/dist/connection/extra/algos/algo.utils.js +0 -54
- package/dist/connection/extra/algos/algo.utils.js.map +0 -1
- package/dist/connection/extra/algos/community.d.ts +0 -27
- package/dist/connection/extra/algos/community.js +0 -76
- package/dist/connection/extra/algos/community.js.map +0 -1
- package/dist/connection/extra/algos/degrees.d.ts +0 -10
- package/dist/connection/extra/algos/degrees.js +0 -24
- package/dist/connection/extra/algos/degrees.js.map +0 -1
- package/dist/connection/extra/algos/embedding.d.ts +0 -13
- package/dist/connection/extra/algos/embedding.js +0 -33
- package/dist/connection/extra/algos/embedding.js.map +0 -1
- package/dist/connection/extra/algos/index.d.ts +0 -5
- package/dist/connection/extra/algos/index.js +0 -14
- package/dist/connection/extra/algos/index.js.map +0 -1
- package/dist/connection/extra/base.extra.d.ts +0 -18
- package/dist/connection/extra/base.extra.js +0 -111
- package/dist/connection/extra/base.extra.js.map +0 -1
- package/dist/connection/extra/batch.insert.extra.d.ts +0 -58
- package/dist/connection/extra/batch.insert.extra.js +0 -354
- package/dist/connection/extra/batch.insert.extra.js.map +0 -1
- package/dist/connection/extra/connection.base.d.ts +0 -112
- package/dist/connection/extra/connection.base.js +0 -530
- package/dist/connection/extra/connection.base.js.map +0 -1
- package/dist/connection/extra/connection.d.ts +0 -17
- package/dist/connection/extra/connection.js +0 -44
- package/dist/connection/extra/connection.js.map +0 -1
- package/dist/connection/extra/graph.extra.d.ts +0 -54
- package/dist/connection/extra/graph.extra.js +0 -151
- package/dist/connection/extra/graph.extra.js.map +0 -1
- package/dist/connection/extra/hdc.extra.d.ts +0 -89
- package/dist/connection/extra/hdc.extra.js +0 -322
- package/dist/connection/extra/hdc.extra.js.map +0 -1
- package/dist/connection/extra/index.extra.d.ts +0 -102
- package/dist/connection/extra/index.extra.js +0 -210
- package/dist/connection/extra/index.extra.js.map +0 -1
- package/dist/connection/extra/job.extra.d.ts +0 -32
- package/dist/connection/extra/job.extra.js +0 -122
- package/dist/connection/extra/job.extra.js.map +0 -1
- package/dist/connection/extra/meta.extra.d.ts +0 -36
- package/dist/connection/extra/meta.extra.js +0 -123
- package/dist/connection/extra/meta.extra.js.map +0 -1
- package/dist/connection/extra/policy.extra.d.ts +0 -32
- package/dist/connection/extra/policy.extra.js +0 -114
- package/dist/connection/extra/policy.extra.js.map +0 -1
- package/dist/connection/extra/privilege.extra.d.ts +0 -8
- package/dist/connection/extra/privilege.extra.js +0 -20
- package/dist/connection/extra/privilege.extra.js.map +0 -1
- package/dist/connection/extra/property.extra.d.ts +0 -66
- package/dist/connection/extra/property.extra.js +0 -190
- package/dist/connection/extra/property.extra.js.map +0 -1
- package/dist/connection/extra/schema.extra.d.ts +0 -108
- package/dist/connection/extra/schema.extra.js +0 -253
- package/dist/connection/extra/schema.extra.js.map +0 -1
- package/dist/connection/extra/search.extra.d.ts +0 -12
- package/dist/connection/extra/search.extra.js +0 -117
- package/dist/connection/extra/search.extra.js.map +0 -1
- package/dist/connection/extra/task.extra.d.ts +0 -24
- package/dist/connection/extra/task.extra.js +0 -107
- package/dist/connection/extra/task.extra.js.map +0 -1
- package/dist/connection/extra/user.extra.d.ts +0 -28
- package/dist/connection/extra/user.extra.js +0 -91
- package/dist/connection/extra/user.extra.js.map +0 -1
- package/dist/connection/extra/user.privilege.extra.d.ts +0 -64
- package/dist/connection/extra/user.privilege.extra.js +0 -273
- package/dist/connection/extra/user.privilege.extra.js.map +0 -1
- package/dist/connection/index.d.ts +0 -5
- package/dist/connection/index.js +0 -13
- package/dist/connection/index.js.map +0 -1
- package/dist/connection/network.manager.d.ts +0 -28
- package/dist/connection/network.manager.js +0 -179
- package/dist/connection/network.manager.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/printers/alias.d.ts +0 -2
- package/dist/printers/alias.js +0 -39
- package/dist/printers/alias.js.map +0 -1
- package/dist/printers/any.d.ts +0 -2
- package/dist/printers/any.js +0 -63
- package/dist/printers/any.js.map +0 -1
- package/dist/printers/array.aio.d.ts +0 -3
- package/dist/printers/array.aio.js +0 -259
- package/dist/printers/array.aio.js.map +0 -1
- package/dist/printers/common.d.ts +0 -0
- package/dist/printers/common.js +0 -1
- package/dist/printers/common.js.map +0 -1
- package/dist/printers/edge.d.ts +0 -5
- package/dist/printers/edge.js +0 -78
- package/dist/printers/edge.js.map +0 -1
- package/dist/printers/explain.plan.d.ts +0 -2
- package/dist/printers/explain.plan.js +0 -46
- package/dist/printers/explain.plan.js.map +0 -1
- package/dist/printers/index.d.ts +0 -24
- package/dist/printers/index.js +0 -43
- package/dist/printers/index.js.map +0 -1
- package/dist/printers/node.d.ts +0 -5
- package/dist/printers/node.js +0 -77
- package/dist/printers/node.js.map +0 -1
- package/dist/printers/path.d.ts +0 -3
- package/dist/printers/path.js +0 -62
- package/dist/printers/path.js.map +0 -1
- package/dist/printers/status.d.ts +0 -3
- package/dist/printers/status.js +0 -68
- package/dist/printers/status.js.map +0 -1
- package/dist/printers/table.d.ts +0 -2
- package/dist/printers/table.js +0 -56
- package/dist/printers/table.js.map +0 -1
- package/dist/proto/tmp.js +0 -366
- package/dist/proto/ultipa_grpc_pb.d.ts +0 -258
- package/dist/proto/ultipa_grpc_pb.js +0 -366
- package/dist/proto/ultipa_grpc_pb.js.map +0 -1
- package/dist/proto/ultipa_pb.d.ts +0 -1
- package/dist/proto/ultipa_pb.js +0 -12119
- package/dist/proto/ultipa_pb.js.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/types.algos.params.d.ts +0 -545
- package/dist/types/types.algos.params.js +0 -16
- package/dist/types/types.algos.params.js.map +0 -1
- package/dist/types/types.d.ts +0 -1214
- package/dist/types/types.extra.d.ts +0 -146
- package/dist/types/types.extra.js +0 -27
- package/dist/types/types.extra.js.map +0 -1
- package/dist/types/types.js +0 -1606
- package/dist/types/types.js.map +0 -1
- package/dist/types/util.d.ts +0 -15
- package/dist/types/util.js +0 -136
- package/dist/types/util.js.map +0 -1
- package/dist/utils/common.d.ts +0 -3
- package/dist/utils/common.js +0 -22
- package/dist/utils/common.js.map +0 -1
- package/dist/utils/config.d.ts +0 -3
- package/dist/utils/config.js +0 -7
- package/dist/utils/config.js.map +0 -1
- package/dist/utils/format.d.ts +0 -45
- package/dist/utils/format.js +0 -879
- package/dist/utils/format.js.map +0 -1
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.js +0 -30
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/params.validate.d.ts +0 -4
- package/dist/utils/params.validate.js +0 -14
- package/dist/utils/params.validate.js.map +0 -1
- package/dist/utils/property.d.ts +0 -24
- package/dist/utils/property.js +0 -203
- package/dist/utils/property.js.map +0 -1
- package/dist/utils/raft.retry.d.ts +0 -0
- package/dist/utils/raft.retry.js +0 -1
- package/dist/utils/raft.retry.js.map +0 -1
- package/dist/utils/serialize/commont.d.ts +0 -12
- package/dist/utils/serialize/commont.js +0 -46
- package/dist/utils/serialize/commont.js.map +0 -1
- package/dist/utils/serialize/deserialize.d.ts +0 -10
- package/dist/utils/serialize/deserialize.js +0 -288
- package/dist/utils/serialize/deserialize.js.map +0 -1
- package/dist/utils/serialize/null.d.ts +0 -32
- package/dist/utils/serialize/null.js +0 -178
- package/dist/utils/serialize/null.js.map +0 -1
- package/dist/utils/serialize/serialize.d.ts +0 -10
- package/dist/utils/serialize/serialize.js +0 -146
- package/dist/utils/serialize/serialize.js.map +0 -1
- package/dist/utils/stream.helper.d.ts +0 -10
- package/dist/utils/stream.helper.js +0 -71
- package/dist/utils/stream.helper.js.map +0 -1
- package/dist/utils/time.record.d.ts +0 -15
- package/dist/utils/time.record.js +0 -52
- package/dist/utils/time.record.js.map +0 -1
- package/dist/utils/timezone.d.ts +0 -7
- package/dist/utils/timezone.js +0 -21
- package/dist/utils/timezone.js.map +0 -1
- package/dist/utils/ultipa.datetime.d.ts +0 -14
- package/dist/utils/ultipa.datetime.js +0 -160
- package/dist/utils/ultipa.datetime.js.map +0 -1
- package/dist/utils/uql-maker.d.ts +0 -165
- package/dist/utils/uql-maker.js +0 -402
- package/dist/utils/uql-maker.js.map +0 -1
- package/dist/utils/uql.parse.d.ts +0 -27
- package/dist/utils/uql.parse.js +0 -205
- package/dist/utils/uql.parse.js.map +0 -1
- package/readme.md +0 -65
- package/src/proto/build.sh +0 -41
- package/src/proto/build_windows.sh +0 -40
- package/src/proto/ultipa.proto +0 -531
- package/src/proto/ultipa_grpc_pb.d.ts +0 -92
- package/src/proto/ultipa_grpc_pb.js +0 -414
- package/src/proto/ultipa_pb.d.ts +0 -1983
- package/src/proto/ultipa_pb.js +0 -14852
package/dist/types/index.js
CHANGED
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
o
|
|
12
|
-
}))
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Barrel export for all types in GQLDB Node.js driver.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
// Enums
|
|
21
|
+
__exportStar(require("./enums"), exports);
|
|
22
|
+
// Wrappers
|
|
23
|
+
__exportStar(require("./wrappers"), exports);
|
|
24
|
+
// Data types
|
|
25
|
+
__exportStar(require("./data_types"), exports);
|
|
26
|
+
// Graph models
|
|
27
|
+
__exportStar(require("./graph_models"), exports);
|
|
28
|
+
// Metadata
|
|
29
|
+
__exportStar(require("./metadata"), exports);
|
|
30
|
+
// Bulk import
|
|
31
|
+
__exportStar(require("./bulk_import"), exports);
|
|
32
|
+
// Schema
|
|
33
|
+
__exportStar(require("./schema"), exports);
|
|
34
|
+
// TypedValue and encoding
|
|
35
|
+
__exportStar(require("./typed_value"), exports);
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOztHQUVHOzs7Ozs7Ozs7Ozs7Ozs7O0FBRUgsUUFBUTtBQUNSLDBDQUF3QjtBQUV4QixXQUFXO0FBQ1gsNkNBQTJCO0FBRTNCLGFBQWE7QUFDYiwrQ0FBNkI7QUFFN0IsZUFBZTtBQUNmLGlEQUErQjtBQUUvQixXQUFXO0FBQ1gsNkNBQTJCO0FBRTNCLGNBQWM7QUFDZCxnREFBOEI7QUFFOUIsU0FBUztBQUNULDJDQUF5QjtBQUV6QiwwQkFBMEI7QUFDMUIsZ0RBQThCIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBCYXJyZWwgZXhwb3J0IGZvciBhbGwgdHlwZXMgaW4gR1FMREIgTm9kZS5qcyBkcml2ZXIuXG4gKi9cblxuLy8gRW51bXNcbmV4cG9ydCAqIGZyb20gJy4vZW51bXMnO1xuXG4vLyBXcmFwcGVyc1xuZXhwb3J0ICogZnJvbSAnLi93cmFwcGVycyc7XG5cbi8vIERhdGEgdHlwZXNcbmV4cG9ydCAqIGZyb20gJy4vZGF0YV90eXBlcyc7XG5cbi8vIEdyYXBoIG1vZGVsc1xuZXhwb3J0ICogZnJvbSAnLi9ncmFwaF9tb2RlbHMnO1xuXG4vLyBNZXRhZGF0YVxuZXhwb3J0ICogZnJvbSAnLi9tZXRhZGF0YSc7XG5cbi8vIEJ1bGsgaW1wb3J0XG5leHBvcnQgKiBmcm9tICcuL2J1bGtfaW1wb3J0JztcblxuLy8gU2NoZW1hXG5leHBvcnQgKiBmcm9tICcuL3NjaGVtYSc7XG5cbi8vIFR5cGVkVmFsdWUgYW5kIGVuY29kaW5nXG5leHBvcnQgKiBmcm9tICcuL3R5cGVkX3ZhbHVlJztcbiJdfQ==
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Metadata types for GQLDB Node.js driver.
|
|
3
|
+
*/
|
|
4
|
+
import { GraphType } from './enums';
|
|
5
|
+
/** Information about a graph */
|
|
6
|
+
export interface GraphInfo {
|
|
7
|
+
name: string;
|
|
8
|
+
graphType: GraphType;
|
|
9
|
+
nodeCount: number;
|
|
10
|
+
edgeCount: number;
|
|
11
|
+
description: string;
|
|
12
|
+
}
|
|
13
|
+
/** Information about a transaction */
|
|
14
|
+
export interface TransactionInfo {
|
|
15
|
+
transactionId: number;
|
|
16
|
+
sessionId: number;
|
|
17
|
+
graphName: string;
|
|
18
|
+
readOnly: boolean;
|
|
19
|
+
createdAt: number;
|
|
20
|
+
durationMs: number;
|
|
21
|
+
internalTxId: string;
|
|
22
|
+
}
|
|
23
|
+
/** AST cache statistics */
|
|
24
|
+
export interface ASTCacheStats {
|
|
25
|
+
hits: number;
|
|
26
|
+
misses: number;
|
|
27
|
+
evictions: number;
|
|
28
|
+
entries: number;
|
|
29
|
+
hitRate: number;
|
|
30
|
+
}
|
|
31
|
+
/** Plan cache statistics */
|
|
32
|
+
export interface PlanCacheStats {
|
|
33
|
+
size: number;
|
|
34
|
+
capacity: number;
|
|
35
|
+
hits: number;
|
|
36
|
+
misses: number;
|
|
37
|
+
hitRate: number;
|
|
38
|
+
}
|
|
39
|
+
/** Combined cache statistics */
|
|
40
|
+
export interface CacheStats {
|
|
41
|
+
astStats?: ASTCacheStats;
|
|
42
|
+
planStats?: PlanCacheStats;
|
|
43
|
+
}
|
|
44
|
+
/** Database statistics */
|
|
45
|
+
export interface Statistics {
|
|
46
|
+
nodeCount: number;
|
|
47
|
+
edgeCount: number;
|
|
48
|
+
labelCounts: Record<string, number>;
|
|
49
|
+
edgeLabelCounts: Record<string, number>;
|
|
50
|
+
}
|
|
51
|
+
/** CPU metrics */
|
|
52
|
+
export interface CpuMetrics {
|
|
53
|
+
processPercent: number;
|
|
54
|
+
systemPercent: number;
|
|
55
|
+
numCores: number;
|
|
56
|
+
}
|
|
57
|
+
/** Memory metrics */
|
|
58
|
+
export interface MemoryMetrics {
|
|
59
|
+
processRss: number;
|
|
60
|
+
heapAlloc: number;
|
|
61
|
+
heapSys: number;
|
|
62
|
+
stackInUse: number;
|
|
63
|
+
systemTotal: number;
|
|
64
|
+
systemAvailable: number;
|
|
65
|
+
systemUsed: number;
|
|
66
|
+
systemUsedPercent: number;
|
|
67
|
+
}
|
|
68
|
+
/** Disk I/O metrics */
|
|
69
|
+
export interface DiskIOMetrics {
|
|
70
|
+
readBytes: number;
|
|
71
|
+
writeBytes: number;
|
|
72
|
+
readCount: number;
|
|
73
|
+
writeCount: number;
|
|
74
|
+
}
|
|
75
|
+
/** Storage metrics */
|
|
76
|
+
export interface StorageMetrics {
|
|
77
|
+
dbPath: string;
|
|
78
|
+
dbSizeBytes: number;
|
|
79
|
+
volumeTotal: number;
|
|
80
|
+
volumeFree: number;
|
|
81
|
+
volumeUsed: number;
|
|
82
|
+
}
|
|
83
|
+
/** Network metrics */
|
|
84
|
+
export interface NetworkMetrics {
|
|
85
|
+
bytesSent: number;
|
|
86
|
+
bytesRecv: number;
|
|
87
|
+
packetsSent: number;
|
|
88
|
+
packetsRecv: number;
|
|
89
|
+
}
|
|
90
|
+
/** System-level metrics */
|
|
91
|
+
export interface SystemMetrics {
|
|
92
|
+
cpu?: CpuMetrics;
|
|
93
|
+
memory?: MemoryMetrics;
|
|
94
|
+
diskIO?: DiskIOMetrics;
|
|
95
|
+
storage?: StorageMetrics;
|
|
96
|
+
network?: NetworkMetrics;
|
|
97
|
+
}
|
|
98
|
+
/** Result of a compact operation */
|
|
99
|
+
export interface CompactResult {
|
|
100
|
+
success: boolean;
|
|
101
|
+
message: string;
|
|
102
|
+
}
|
|
103
|
+
/** Result of a wait-for-compute-topology operation */
|
|
104
|
+
export interface ComputeTopologyResult {
|
|
105
|
+
ready: boolean;
|
|
106
|
+
message: string;
|
|
107
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Metadata types for GQLDB Node.js driver.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWV0YWRhdGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMvbWV0YWRhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOztHQUVHIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBNZXRhZGF0YSB0eXBlcyBmb3IgR1FMREIgTm9kZS5qcyBkcml2ZXIuXG4gKi9cblxuaW1wb3J0IHsgR3JhcGhUeXBlIH0gZnJvbSAnLi9lbnVtcyc7XG5cbi8qKiBJbmZvcm1hdGlvbiBhYm91dCBhIGdyYXBoICovXG5leHBvcnQgaW50ZXJmYWNlIEdyYXBoSW5mbyB7XG4gIG5hbWU6IHN0cmluZztcbiAgZ3JhcGhUeXBlOiBHcmFwaFR5cGU7XG4gIG5vZGVDb3VudDogbnVtYmVyO1xuICBlZGdlQ291bnQ6IG51bWJlcjtcbiAgZGVzY3JpcHRpb246IHN0cmluZztcbn1cblxuLyoqIEluZm9ybWF0aW9uIGFib3V0IGEgdHJhbnNhY3Rpb24gKi9cbmV4cG9ydCBpbnRlcmZhY2UgVHJhbnNhY3Rpb25JbmZvIHtcbiAgdHJhbnNhY3Rpb25JZDogbnVtYmVyO1xuICBzZXNzaW9uSWQ6IG51bWJ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biAgcGFja2V0c1JlY3Y6IG51bWJlcjtcbn1cblxuLyoqIFN5c3RlbS1sZXZlbCBtZXRyaWNzICovXG5leHBvcnQgaW50ZXJmYWNlIFN5c3RlbU1ldHJpY3Mge1xuICBjcHU/OiBDcHVNZXRyaWNzO1xuICBtZW1vcnk/OiBNZW1vcnlNZXRyaWNzO1xuICBkaXNrSU8/OiBEaXNrSU9NZXRyaWNzO1xuICBzdG9yYWdlPzogU3RvcmFnZU1ldHJpY3M7XG4gIG5ldHdvcms/OiBOZXR3b3JrTWV0cmljcztcbn1cblxuLyoqIFJlc3VsdCBvZiBhIGNvbXBhY3Qgb3BlcmF0aW9uICovXG5leHBvcnQgaW50ZXJmYWNlIENvbXBhY3RSZXN1bHQge1xuICBzdWNjZXNzOiBib29sZWFuO1xuICBtZXNzYWdlOiBzdHJpbmc7XG59XG5cbi8qKiBSZXN1bHQgb2YgYSB3YWl0LWZvci1jb21wdXRlLXRvcG9sb2d5IG9wZXJhdGlvbiAqL1xuZXhwb3J0IGludGVyZmFjZSBDb21wdXRlVG9wb2xvZ3lSZXN1bHQge1xuICByZWFkeTogYm9vbGVhbjtcbiAgbWVzc2FnZTogc3RyaW5nO1xufVxuIl19
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schema types for GQLDB Node.js driver.
|
|
3
|
+
*/
|
|
4
|
+
import { PropertyType } from './enums';
|
|
5
|
+
/** Property definition in a schema */
|
|
6
|
+
export interface PropertyDef {
|
|
7
|
+
name: string;
|
|
8
|
+
type: PropertyType;
|
|
9
|
+
}
|
|
10
|
+
/** Node/edge schema metadata */
|
|
11
|
+
export interface Schema {
|
|
12
|
+
name: string;
|
|
13
|
+
properties: PropertyDef[];
|
|
14
|
+
}
|
|
15
|
+
/** Column header in a table */
|
|
16
|
+
export interface Header {
|
|
17
|
+
name: string;
|
|
18
|
+
type: PropertyType;
|
|
19
|
+
}
|
|
20
|
+
/** Generic result table */
|
|
21
|
+
export interface Table {
|
|
22
|
+
name: string;
|
|
23
|
+
headers: Header[];
|
|
24
|
+
rows: any[][];
|
|
25
|
+
}
|
|
26
|
+
/** Scalar or list attribute result */
|
|
27
|
+
export interface Attr {
|
|
28
|
+
name: string;
|
|
29
|
+
type: PropertyType;
|
|
30
|
+
values: any[];
|
|
31
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Schema types for GQLDB Node.js driver.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3R5cGVzL3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7O0dBRUciLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFNjaGVtYSB0eXBlcyBmb3IgR1FMREIgTm9kZS5qcyBkcml2ZXIuXG4gKi9cblxuaW1wb3J0IHsgUHJvcGVydHlUeXBlIH0gZnJvbSAnLi9lbnVtcyc7XG5cbi8qKiBQcm9wZXJ0eSBkZWZpbml0aW9uIGluIGEgc2NoZW1hICovXG5leHBvcnQgaW50ZXJmYWNlIFByb3BlcnR5RGVmIHtcbiAgbmFtZTogc3RyaW5nO1xuICB0eXBlOiBQcm9wZXJ0eVR5cGU7XG59XG5cbi8qKiBOb2RlL2VkZ2Ugc2NoZW1hIG1ldGFkYXRhICovXG5leHBvcnQgaW50ZXJmYWNlIFNjaGVtYSB7XG4gIG5hbWU6IHN0cmluZztcbiAgcHJvcGVydGllczogUHJvcGVydHlEZWZbXTtcbn1cblxuLyoqIENvbHVtbiBoZWFkZXIgaW4gYSB0YWJsZSAqL1xuZXhwb3J0IGludGVyZmFjZSBIZWFkZXIge1xuICBuYW1lOiBzdHJpbmc7XG4gIHR5cGU6IFByb3BlcnR5VHlwZTtcbn1cblxuLyoqIEdlbmVyaWMgcmVzdWx0IHRhYmxlICovXG5leHBvcnQgaW50ZXJmYWNlIFRhYmxlIHtcbiAgbmFtZTogc3RyaW5nO1xuICBoZWFkZXJzOiBIZWFkZXJbXTtcbiAgcm93czogYW55W11bXTtcbn1cblxuLyoqIFNjYWxhciBvciBsaXN0IGF0dHJpYnV0ZSByZXN1bHQgKi9cbmV4cG9ydCBpbnRlcmZhY2UgQXR0ciB7XG4gIG5hbWU6IHN0cmluZztcbiAgdHlwZTogUHJvcGVydHlUeXBlO1xuICB2YWx1ZXM6IGFueVtdO1xufVxuIl19
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TypedValue encoding and decoding for GQLDB Node.js driver.
|
|
3
|
+
*/
|
|
4
|
+
import { PropertyType } from './enums';
|
|
5
|
+
/** Represents a typed value for wire transmission */
|
|
6
|
+
export interface TypedValue {
|
|
7
|
+
type: PropertyType;
|
|
8
|
+
data: Buffer;
|
|
9
|
+
isNull: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** Create a TypedValue from a JavaScript value */
|
|
12
|
+
export declare function createTypedValue(value: any): TypedValue;
|
|
13
|
+
/** Convert a TypedValue to a JavaScript value */
|
|
14
|
+
export declare function typedValueToJS(tv: TypedValue): any;
|
|
15
|
+
/** Serialize a TypedValue to its canonical string representation */
|
|
16
|
+
export declare function formatValue(tv: TypedValue): string;
|
|
17
|
+
/** Parse a string into a TypedValue for the given target type */
|
|
18
|
+
export declare function fromString(s: string, targetType: PropertyType): TypedValue;
|
|
19
|
+
/** Parameter for queries */
|
|
20
|
+
export interface Parameter {
|
|
21
|
+
name: string;
|
|
22
|
+
value: TypedValue;
|
|
23
|
+
}
|
|
24
|
+
/** Create a parameter from name and value */
|
|
25
|
+
export declare function createParameter(name: string, value: any): Parameter;
|