Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mandarinets/orm-core/connectors/postgreSQLConnector.ts>PostgresConnectorInterface

Mandarine.TS is a typescript, decorator-driven framework that allows you to create server-side applications. Mandarine.TS provides a range of built-in solutions such as Dependency Injection, Components, ORM and more. Under its umbrella, Mandarine.TS has 4 modules: Core, Data, Security and MVC, these modules will offer you the requirements to build a Mandarine-powered application.
Latest
interface PostgresConnectorInterface
implements [[[Mandarine.ORM].Connection].Connector]
import { type PostgresConnectorInterface } from "https://deno.land/x/mandarinets@v2.3.2/orm-core/connectors/postgreSQLConnector.ts";

Properties

clientPooler: Mandarine.ORM.Connection.ConnectorClient

Client that maintains an external database connection.

optional
connected: boolean

Is the client connected to an external instance.

Methods

makeConnection(): Promise<PoolClient | undefined>

Connect to an external database instance.

query(query: string | QueryConfig): Promise<QueryResult | undefined>

Execute a query on the external database instance.

queryWithConnection(
connection: PoolClient,
query: string | QueryConfig,
releaseOnFinish: boolean,
): Promise<QueryResult | undefined>

Execute a query on the external database instance with an existing connection.

optional
transaction(queries: string[]): Promise<any[]>

Execute queries within a transaction on the database instance.

optional
close(): Promise<any>

Disconnect from the external database instance.