database_adapter_postgre 0.2.0 copy "database_adapter_postgre: ^0.2.0" to clipboard
database_adapter_postgre: ^0.2.0 copied to clipboard

discontinued

An adapter for using 'package:database' API with a PostgreSQL database.

example/example.dart

import 'package:database_adapter_postgre/database_adapter_postgre.dart';

Future main() async {
  final database = Postgre(
    host: 'localhost',
    port: 5432,
    user: 'your username',
    password: 'your password',
    databaseName: 'example',
  ).database();

  final iterator = await database.sqlClient
      .query(
        'SELECT (name) FROM employee',
      )
      .getIterator();

  for (var row in await iterator.toRows()) {
    print('Name: ${row[0]}');
  }
}
4
likes
30
pub points
13%
popularity

Publisher

verified publisherdint.dev

An adapter for using 'package:database' API with a PostgreSQL database.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

collection, database, meta, postgres

More

Packages that depend on database_adapter_postgre