import { connectionHolder } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/internal/index.ts";
const { ConnectionHolder } = connectionHolder;
Utility to lazily initialize connections and return them back to the pool when unused.
Methods
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.
bookmark(): Bookmark
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)