UNPKG

@ultipa-graph/ultipa-driver

Version:

NodeJS SDK for Ultipa GQL

92 lines 16.4 kB
"use strict"; /** * GQLDB Node.js Driver - A gRPC-based client for GQLDB graph database. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.QueryTimeoutError = exports.QueryFailedError = exports.TransactionAlreadyOpenError = exports.TransactionNotFoundError = exports.TransactionFailedError = exports.NoTransactionError = exports.InvalidSessionError = exports.SessionExpiredError = exports.LogoutFailedError = exports.LoginFailedError = exports.NotLoggedInError = exports.HealthCheckFailedError = exports.AllHostsFailedError = exports.ConnectionFailedError = exports.ConnectionClosedError = exports.NoConnectionError = exports.InvalidTimeoutError = exports.NoHostsError = exports.GqldbError = exports.promisifyCallWithDeadline = exports.promisifyCall = exports.createServiceClients = exports.ConnectionPool = exports.TransactionManager = exports.SessionManager = exports.printAny = exports.printTable = exports.printPaths = exports.printEdgesWithoutSchema = exports.printEdges = exports.printNodesWithoutSchema = exports.printNodes = exports.Row = exports.Response = exports.Point3D = exports.Point = exports.createParameter = exports.typedValueToJS = exports.createTypedValue = exports.InsertType = exports.CacheType = exports.HealthStatus = exports.EdgeIdMode = exports.GraphType = exports.PropertyType = exports.DEFAULT_CONFIG = exports.validateConfig = exports.createConfig = exports.ConfigBuilder = exports.GqldbClient = void 0; exports.VERSION = exports.UnsupportedTypeError = exports.TypeConversionError = exports.InvalidTypeError = exports.ExportFailedError = exports.DeleteFailedError = exports.InsertFailedError = exports.DropGraphFailedError = exports.CreateGraphFailedError = exports.GraphExistsError = exports.GraphNotFoundError = exports.EmptyQueryError = exports.InvalidQueryError = void 0; // Main client var client_1 = require("./client"); Object.defineProperty(exports, "GqldbClient", { enumerable: true, get: function () { return client_1.GqldbClient; } }); // Configuration var config_1 = require("./config"); Object.defineProperty(exports, "ConfigBuilder", { enumerable: true, get: function () { return config_1.ConfigBuilder; } }); Object.defineProperty(exports, "createConfig", { enumerable: true, get: function () { return config_1.createConfig; } }); Object.defineProperty(exports, "validateConfig", { enumerable: true, get: function () { return config_1.validateConfig; } }); Object.defineProperty(exports, "DEFAULT_CONFIG", { enumerable: true, get: function () { return config_1.DEFAULT_CONFIG; } }); // Types var types_1 = require("./types"); Object.defineProperty(exports, "PropertyType", { enumerable: true, get: function () { return types_1.PropertyType; } }); Object.defineProperty(exports, "GraphType", { enumerable: true, get: function () { return types_1.GraphType; } }); Object.defineProperty(exports, "EdgeIdMode", { enumerable: true, get: function () { return types_1.EdgeIdMode; } }); Object.defineProperty(exports, "HealthStatus", { enumerable: true, get: function () { return types_1.HealthStatus; } }); Object.defineProperty(exports, "CacheType", { enumerable: true, get: function () { return types_1.CacheType; } }); Object.defineProperty(exports, "InsertType", { enumerable: true, get: function () { return types_1.InsertType; } }); Object.defineProperty(exports, "createTypedValue", { enumerable: true, get: function () { return types_1.createTypedValue; } }); Object.defineProperty(exports, "typedValueToJS", { enumerable: true, get: function () { return types_1.typedValueToJS; } }); Object.defineProperty(exports, "createParameter", { enumerable: true, get: function () { return types_1.createParameter; } }); Object.defineProperty(exports, "Point", { enumerable: true, get: function () { return types_1.Point; } }); Object.defineProperty(exports, "Point3D", { enumerable: true, get: function () { return types_1.Point3D; } }); // Response var response_1 = require("./response"); Object.defineProperty(exports, "Response", { enumerable: true, get: function () { return response_1.Response; } }); Object.defineProperty(exports, "Row", { enumerable: true, get: function () { return response_1.Row; } }); // Printers var printers_1 = require("./printers"); Object.defineProperty(exports, "printNodes", { enumerable: true, get: function () { return printers_1.printNodes; } }); Object.defineProperty(exports, "printNodesWithoutSchema", { enumerable: true, get: function () { return printers_1.printNodesWithoutSchema; } }); Object.defineProperty(exports, "printEdges", { enumerable: true, get: function () { return printers_1.printEdges; } }); Object.defineProperty(exports, "printEdgesWithoutSchema", { enumerable: true, get: function () { return printers_1.printEdgesWithoutSchema; } }); Object.defineProperty(exports, "printPaths", { enumerable: true, get: function () { return printers_1.printPaths; } }); Object.defineProperty(exports, "printTable", { enumerable: true, get: function () { return printers_1.printTable; } }); Object.defineProperty(exports, "printAny", { enumerable: true, get: function () { return printers_1.printAny; } }); // Session var session_1 = require("./session"); Object.defineProperty(exports, "SessionManager", { enumerable: true, get: function () { return session_1.SessionManager; } }); // Transaction var transaction_1 = require("./transaction"); Object.defineProperty(exports, "TransactionManager", { enumerable: true, get: function () { return transaction_1.TransactionManager; } }); // Connection var connection_1 = require("./connection"); Object.defineProperty(exports, "ConnectionPool", { enumerable: true, get: function () { return connection_1.ConnectionPool; } }); // Services var services_1 = require("./services"); Object.defineProperty(exports, "createServiceClients", { enumerable: true, get: function () { return services_1.createServiceClients; } }); Object.defineProperty(exports, "promisifyCall", { enumerable: true, get: function () { return services_1.promisifyCall; } }); Object.defineProperty(exports, "promisifyCallWithDeadline", { enumerable: true, get: function () { return services_1.promisifyCallWithDeadline; } }); // Errors var errors_1 = require("./errors"); Object.defineProperty(exports, "GqldbError", { enumerable: true, get: function () { return errors_1.GqldbError; } }); Object.defineProperty(exports, "NoHostsError", { enumerable: true, get: function () { return errors_1.NoHostsError; } }); Object.defineProperty(exports, "InvalidTimeoutError", { enumerable: true, get: function () { return errors_1.InvalidTimeoutError; } }); Object.defineProperty(exports, "NoConnectionError", { enumerable: true, get: function () { return errors_1.NoConnectionError; } }); Object.defineProperty(exports, "ConnectionClosedError", { enumerable: true, get: function () { return errors_1.ConnectionClosedError; } }); Object.defineProperty(exports, "ConnectionFailedError", { enumerable: true, get: function () { return errors_1.ConnectionFailedError; } }); Object.defineProperty(exports, "AllHostsFailedError", { enumerable: true, get: function () { return errors_1.AllHostsFailedError; } }); Object.defineProperty(exports, "HealthCheckFailedError", { enumerable: true, get: function () { return errors_1.HealthCheckFailedError; } }); Object.defineProperty(exports, "NotLoggedInError", { enumerable: true, get: function () { return errors_1.NotLoggedInError; } }); Object.defineProperty(exports, "LoginFailedError", { enumerable: true, get: function () { return errors_1.LoginFailedError; } }); Object.defineProperty(exports, "LogoutFailedError", { enumerable: true, get: function () { return errors_1.LogoutFailedError; } }); Object.defineProperty(exports, "SessionExpiredError", { enumerable: true, get: function () { return errors_1.SessionExpiredError; } }); Object.defineProperty(exports, "InvalidSessionError", { enumerable: true, get: function () { return errors_1.InvalidSessionError; } }); Object.defineProperty(exports, "NoTransactionError", { enumerable: true, get: function () { return errors_1.NoTransactionError; } }); Object.defineProperty(exports, "TransactionFailedError", { enumerable: true, get: function () { return errors_1.TransactionFailedError; } }); Object.defineProperty(exports, "TransactionNotFoundError", { enumerable: true, get: function () { return errors_1.TransactionNotFoundError; } }); Object.defineProperty(exports, "TransactionAlreadyOpenError", { enumerable: true, get: function () { return errors_1.TransactionAlreadyOpenError; } }); Object.defineProperty(exports, "QueryFailedError", { enumerable: true, get: function () { return errors_1.QueryFailedError; } }); Object.defineProperty(exports, "QueryTimeoutError", { enumerable: true, get: function () { return errors_1.QueryTimeoutError; } }); Object.defineProperty(exports, "InvalidQueryError", { enumerable: true, get: function () { return errors_1.InvalidQueryError; } }); Object.defineProperty(exports, "EmptyQueryError", { enumerable: true, get: function () { return errors_1.EmptyQueryError; } }); Object.defineProperty(exports, "GraphNotFoundError", { enumerable: true, get: function () { return errors_1.GraphNotFoundError; } }); Object.defineProperty(exports, "GraphExistsError", { enumerable: true, get: function () { return errors_1.GraphExistsError; } }); Object.defineProperty(exports, "CreateGraphFailedError", { enumerable: true, get: function () { return errors_1.CreateGraphFailedError; } }); Object.defineProperty(exports, "DropGraphFailedError", { enumerable: true, get: function () { return errors_1.DropGraphFailedError; } }); Object.defineProperty(exports, "InsertFailedError", { enumerable: true, get: function () { return errors_1.InsertFailedError; } }); Object.defineProperty(exports, "DeleteFailedError", { enumerable: true, get: function () { return errors_1.DeleteFailedError; } }); Object.defineProperty(exports, "ExportFailedError", { enumerable: true, get: function () { return errors_1.ExportFailedError; } }); Object.defineProperty(exports, "InvalidTypeError", { enumerable: true, get: function () { return errors_1.InvalidTypeError; } }); Object.defineProperty(exports, "TypeConversionError", { enumerable: true, get: function () { return errors_1.TypeConversionError; } }); Object.defineProperty(exports, "UnsupportedTypeError", { enumerable: true, get: function () { return errors_1.UnsupportedTypeError; } }); // Version exports.VERSION = '0.1.0'; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOztHQUVHOzs7O0FBRUgsY0FBYztBQUNkLG1DQUErRjtBQUF0RixxR0FBQSxXQUFXLE9BQUE7QUFFcEIsZ0JBQWdCO0FBQ2hCLG1DQUFvRztBQUE5RSx1R0FBQSxhQUFhLE9BQUE7QUFBRSxzR0FBQSxZQUFZLE9BQUE7QUFBRSx3R0FBQSxjQUFjLE9BQUE7QUFBRSx3R0FBQSxjQUFjLE9BQUE7QUFFakYsUUFBUTtBQUNSLGlDQTJDaUI7QUExQ2YscUdBQUEsWUFBWSxPQUFBO0FBQ1osa0dBQUEsU0FBUyxPQUFBO0FBQ1QsbUdBQUEsVUFBVSxPQUFBO0FBQ1YscUdBQUEsWUFBWSxPQUFBO0FBQ1osa0dBQUEsU0FBUyxPQUFBO0FBQ1QsbUdBQUEsVUFBVSxPQUFBO0FBRVYseUdBQUEsZ0JBQWdCLE9BQUE7QUFDaEIsdUdBQUEsY0FBYyxPQUFBO0FBRWQsd0dBQUEsZUFBZSxPQUFBO0FBQ2YsOEZBQUEsS0FBSyxPQUFBO0FBQ0wsZ0dBQUEsT0FBTyxPQUFBO0FBZ0NULFdBQVc7QUFDWCx1Q0FZb0I7QUFYbEIsb0dBQUEsUUFBUSxPQUFBO0FBQ1IsK0ZBQUEsR0FBRyxPQUFBO0FBWUwsV0FBVztBQUNYLHVDQVFvQjtBQVBsQixzR0FBQSxVQUFVLE9BQUE7QUFDVixtSEFBQSx1QkFBdUIsT0FBQTtBQUN2QixzR0FBQSxVQUFVLE9BQUE7QUFDVixtSEFBQSx1QkFBdUIsT0FBQTtBQUN2QixzR0FBQSxVQUFVLE9BQ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