knex_dart_postgres library

PostgreSQL driver for knex_dart.

Example:

import 'package:knex_dart_postgres/knex_dart_postgres.dart';

final db = await KnexPostgres.connect(
  host: 'localhost',
  database: 'myapp',
  username: 'user',
  password: 'password',
);

final users = await db.select(
  db.queryBuilder().from('users').where('active', '=', true)
);

await db.close();

Classes

KnexPostgres
PostgreSQL-specific Knex wrapper.
KnexPostgresTransaction
Transaction facade returned by KnexPostgres.trx.
PostgresClient
PostgreSQL database client backed by a connection pool.
PostgresTrxClient
Low-level transaction-scoped Postgres session executor.