Skip to main content
Module

x/neo4j_lite_client/mod.ts>ConnectionProvider

Unofficial Neo4j Driver for Deno
Latest
class ConnectionProvider
Re-export
import { ConnectionProvider } from "https://deno.land/x/neo4j_lite_client@4.4.6/mod.ts";

Inteface define a common way to acquire a connection

Methods

acquireConnection(param?: { accessMode?: string; database?: string; bookmarks: bookmark.Bookmark; impersonatedUser?: string; onDatabaseNameResolved?: (databaseName?: string) => void; }): Promise<Connection>

This method acquires a connection against the specified database.

Access mode and Bookmarks only applies to routing driver. Access mode only differentiates the target server for the connection, where WRITE selects a WRITER server, whereas READ selects a READ server. Bookmarks, when specified, is only passed to the routing discovery procedure, for the system database to synchronize on creation of databases and is never used in direct drivers.

close(): Promise<void>

Closes this connection provider along with its internals (connections, pools, etc.)

supportsMultiDb(): Promise<boolean>

This method checks whether the backend database supports multi database functionality by checking protocol handshake result.

supportsTransactionConfig(): Promise<boolean>

This method checks whether the backend database supports transaction config functionality by checking protocol handshake result.

supportsUserImpersonation(): Promise<boolean>

This method checks whether the backend database supports transaction config functionality by checking protocol handshake result.