import { ConnectionHolder } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/internal/connection-holder.ts";
Utility to lazily initialize connections and return them back to the pool when unused.
Constructors
new
ConnectionHolder(unnamed 0?: { mode?: string; database?: string; bookmark?: Bookmark; connectionProvider?: ConnectionProvider; impersonatedUser?: string; onDatabaseNameResolved?: (databaseName?: string) => void; })Properties
private
_bookmark: Bookmarkprivate
_connectionPromise: Promise<Connection | void>private
optional
_connectionProvider: ConnectionProviderMethods
private
_releaseConnection(): Promise<Connection | void>Return the current pooled connection instance to the connection pool.
We don't pool Session instances, to avoid users using the Session after they've called close.
The Session
object is just a thin wrapper around Connection anyway, so it makes little difference.
close(): Promise<void | Connection>
connectionProvider(): ConnectionProvider | undefined
database(): string | undefined
getConnection(): Promise<Connection | void>
initializeConnection(): boolean
mode(): string | undefined
referenceCount(): number
releaseConnection(): Promise<void | Connection>
setDatabase(database?: string)