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

discontinued
outdated

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

Overview #

Provides an adapter for using the package database with PostgreSQL. The implementation uses the package postgres.

Getting started #

1.Add dependency #

dependencies:
  database: any
  database_adapter_postgre: any

2.Configure #

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',
  );

  final result = await database.querySql('SELECT (name) FROM employee');
  for (var row in result.rows) {
    print('Name: ${row[0]}');
  }
}
4
likes
30
pub points
18%
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, fixnum, meta, postgres

More

Packages that depend on database_adapter_postgre