Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grm/deps.ts>denodb.PostgresConnector

MTProto API Client for Deno 🦕
Go to Latest
class denodb.PostgresConnector
implements Connector
import { denodb } from "https://deno.land/x/grm@v0.3.1/deps.ts";
const { PostgresConnector } = denodb;

Constructors

new
PostgresConnector(options: PostgresOptions)

Create a PostgreSQL connection.

Properties

_client: PostgresClient
_connected: boolean
_dialect: SupportedSQLDatabaseDialect
_options: PostgresOptions
_translator: SQLTranslator

Methods

query(queryDescription: QueryDescription): Promise<any | any[]>
transaction(queries: () => Promise<void>)