athena_postgres 1.0.1 athena_postgres: ^1.0.1 copied to clipboard
Dart PostgreSQL query builder, expressive and user-friendly API to build and manage SQL queries in your Dart projects.
example/athena_postgres_example.dart
import 'package:athena_postgres/athena_postgres.dart';
import 'package:athena_sql/athena_sql.dart';
void main() async {
final athena = AthenaPostgresql(PostgresDatabaseConfig('host', 1, 'db'));
await athena.open();
await athena.create
.table('user')
.column((t) => t.$customType('name', type: 'text'))
.run();
await athena.drop.table('user').run();
}