angel3_orm_postgres 3.2.0 copy "angel3_orm_postgres: ^3.2.0" to clipboard
angel3_orm_postgres: ^3.2.0 copied to clipboard

outdated

PostgreSQL support for Angel3 ORM. Includes functionality for querying and transactions.

example/main.dart

import 'dart:io';
import 'package:angel3_orm_postgres/angel3_orm_postgres.dart';
import 'package:postgres_pool/postgres_pool.dart';

void main() async {
  var executor = PostgreSqlPoolExecutor(PgPool(
    PgEndpoint(
      host: 'localhost',
      port: 5432,
      database: 'orm_test',
      username: Platform.environment['POSTGRES_USERNAME'] ?? 'test',
      password: Platform.environment['POSTGRES_PASSWORD'] ?? 'test123',
    ),
    settings: PgPoolSettings()
      ..maxConnectionAge = Duration(hours: 1)
      ..concurrency = 5,
  ));

  var rows = await executor.query('users', 'SELECT * FROM users', {});
  print(rows);
}
4
likes
0
pub points
66%
popularity

Publisher

verified publisherdukefirehawk.com

PostgreSQL support for Angel3 ORM. Includes functionality for querying and transactions.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

angel3_orm, logging, pool, postgres, postgres_pool

More

Packages that depend on angel3_orm_postgres