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

x/denodb/lib/connectors/postgres-connector.ts>PostgresConnector

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Go to Latest
class PostgresConnector
implements Connector
import { PostgresConnector } from "https://deno.land/x/denodb@v1.1.0/lib/connectors/postgres-connector.ts";

Constructors

new
PostgresConnector(options: PostgresOptions)

Create a PostgreSQL connection.

Properties

_connected: boolean
_options: PostgresOptions
_translator: SQLTranslator

Methods

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