athena_postgres 1.0.13 copy "athena_postgres: ^1.0.13" to clipboard
athena_postgres: ^1.0.13 copied to clipboard

Dart PostgreSQL query builder, expressive and user-friendly API to build and manage SQL queries in your Dart projects.

Athena Postgres #

This package provides a Postgres database for Athena.

for documentation on how to use Athena, see the Athena documentation or the Athena repository

Usage #

install the package

$ dart pub add athena_postgres

Create a database connection

import 'package:athena_postgres/athena_postgres.dart';

final athenaSql = AthenaPostgresql(
    PostgresDatabaseConfig(
        'localhost',
        5432,
        'database',
        username: 'user', // optional
        password: 'password', // optional
        database: 'database', // optional
        timeoutInSeconds: 30, // optional
        queryTimeoutInSeconds: 30, // optional
        timeZone: 'UTC', // optional
        useSSL: false, // optional
        isUnixSocket: false, // optional
        allowClearTextPassword: false, // optional
        replicationMode: ReplicationMode.none, // optional
    ),
);

to open a connection

await athenaSql.open();
0
likes
130
pub points
0%
popularity

Publisher

verified publisherathena-sql.dev

Dart PostgreSQL query builder, expressive and user-friendly API to build and manage SQL queries in your Dart projects.

Homepage
Repository (GitHub)
View/report issues

Topics

#sql #postgres

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

athena_sql, path, postgres

More

Packages that depend on athena_postgres