/opt/canhelp/node_modules/gel/dist
NameSizeModeActions
codecs/-0755rm
datatypes/-0755rm
errors/-0755rm
primitives/-0755rm
reflection/-0755rm
baseClient.d.ts58870644editdlrm
baseClient.js198870644editdlrm
baseConn.d.ts48900644editdlrm
baseConn.js315880644editdlrm
browserClient.d.ts2000644editdlrm
browserClient.js12120644editdlrm
browserCrypto.d.ts910644editdlrm
browserCrypto.js7240644editdlrm
cli.mjs74390755editdlrm
codecTypeRegistry.d.ts1950644editdlrm
codecTypeRegistry.js770644editdlrm
conUtils.d.ts55400644editdlrm
conUtils.js362590644editdlrm
conUtils.server.d.ts5550644editdlrm
conUtils.server.js32660644editdlrm
credentials.d.ts5610644editdlrm
credentials.js41580644editdlrm
cryptoUtils.d.ts1060644editdlrm
cryptoUtils.js8110644editdlrm
fetchConn.d.ts28000644editdlrm
fetchConn.js75450644editdlrm
httpScram.d.ts2290644editdlrm
httpScram.js39700644editdlrm
ifaces.d.ts25300644editdlrm
ifaces.js28470644editdlrm
index.browser.d.ts8670644editdlrm
index.browser.js19730644editdlrm
index.node.d.ts12750644editdlrm
index.node.js32660644editdlrm
index.shared.d.ts18960644editdlrm
index.shared.js54860644editdlrm
nodeClient.d.ts2400644editdlrm
nodeClient.js15290644editdlrm
nodeCrypto.d.ts910644editdlrm
nodeCrypto.js9170644editdlrm
options.d.ts42540644editdlrm
options.js112490644editdlrm
platform.d.ts1240644editdlrm
platform.js17310644editdlrm
rawConn.d.ts12180644editdlrm
rawConn.js173140644editdlrm
retry.d.ts11530644editdlrm
retry.js39250644editdlrm
scram.d.ts17230644editdlrm
scram.js60040644editdlrm
systemUtils.d.ts4830644editdlrm
systemUtils.js38400644editdlrm
transaction.d.ts17380644editdlrm
transaction.js81130644editdlrm
typeutil.d.ts2430644editdlrm
typeutil.js770644editdlrm
utils.d.ts19250644editdlrm
utils.js37270644editdlrm
Edit: /opt/canhelp/node_modules/gel/dist/baseConn.d.ts (4890B)
/*! * This source file is part of the Gel open source project. * * Copyright 2019-present MagicStack Inc. and the Gel authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { ICodec } from "./codecs/ifaces"; import type { CodecsRegistry } from "./codecs/registry"; import * as errors from "./errors"; import type { QueryOptions, ProtocolVersion, QueryArgs } from "./ifaces"; import { Cardinality, OutputFormat, Language } from "./ifaces"; import { ReadMessageBuffer, WriteBuffer } from "./primitives/buffer"; import Event from "./primitives/event"; import LRU from "./primitives/lru"; import type { SerializedSessionState } from "./options"; import { Options } from "./options"; export declare const PROTO_VER: ProtocolVersion; export declare const PROTO_VER_MIN: ProtocolVersion; export declare enum Capabilities { NONE = 0, MODIFICATONS = 1, SESSION_CONFIG = 2, TRANSACTION = 4, DDL = 8, PERSISTENT_CONFIG = 16, SET_GLOBAL = 32, ALL = 4294967295 } export declare const RESTRICTED_CAPABILITIES: number; export type ParseResult = [ cardinality: Cardinality, inCodec: ICodec, outCodec: ICodec, capabilities: number, inCodecBuffer: Uint8Array | null, outCodecBuffer: Uint8Array | null, warnings: errors.GelError[], unsafeIsolationDangers: errors.GelError[] ]; export type connConstructor = new (registry: CodecsRegistry) => BaseRawConnection; export declare class BaseRawConnection { protected connected: boolean; protected lastStatus: string | null; protected codecsRegistry: CodecsRegistry; protected queryCodecCache: LRU; protected serverSecret: Uint8Array | null; private serverXactStatus; protected buffer: ReadMessageBuffer; protected messageWaiter: Event | null; protected connWaiter: Event; connAbortWaiter: Event; protected _abortedWith: Error | null; protocolVersion: ProtocolVersion; protected stateCodec: ICodec; protected stateCache: WeakMap; lastStateUpdate: SerializedSessionState | null; protected adminUIMode: boolean; protected throwNotImplemented(method: string): never; protected _waitForMessage(): Promise; protected _sendData(_data: Uint8Array): void; getConnAbortError(): Error; protected _checkState(): void; protected _abortWithError(err: Error): void; protected _ignoreHeaders(): void; protected _readHeaders(): Record; protected _abortWaiters(err: Error): void; protected _parseHeaders(): Map; private _parseDescribeTypeMessage; protected _parseCommandCompleteMessage(): string; protected _parseErrorMessage(): Error; protected _parseSyncMessage(): void; private _redirectDataMessages; private _parseDataMessages; private _parseServerSettings; protected _parseDescribeStateMessage(): void; protected _fallthrough(): void; private _encodeArgs; private _isInTransaction; private _setStateCodec; private _encodeParseParams; _parse(language: Language, query: string, outputFormat: OutputFormat, expectedCardinality: Cardinality, state: Options, capabilitiesFlags?: number, options?: QueryOptions, unsafeIsolationDangers?: errors.GelError[]): Promise; protected _executeFlow(language: Language, query: string, args: QueryArgs, outputFormat: OutputFormat, expectedCardinality: Cardinality, state: Options, inCodec: ICodec, outCodec: ICodec, result: any[] | WriteBuffer, capabilitiesFlags?: number, options?: QueryOptions, unsafeIsolationDangers?: errors.GelError[]): Promise<[errors.GelError[], errors.GelError[]]>; private _getQueryCacheKey; private _validateFetchCardinality; fetch(query: string, args: QueryArgs | undefined, outputFormat: OutputFormat, expectedCardinality: Cardinality, state: Options, privilegedMode?: boolean, language?: Language): Promise<{ result: any; warnings: errors.GelError[]; unsafeIsolationDangers: errors.GelError[]; }>; getQueryCapabilities(query: string, outputFormat: OutputFormat, expectedCardinality: Cardinality): number | null; resetState(): Promise; protected _abort(): void; isClosed(): boolean; close(): Promise; }