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

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

Athena MySQL #

This package provides a MySQL 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_mysql

Create a database connection

import 'package:athena_mysql/athena_mysql.dart';

final athenaSql = AthenaMySQL(
    MySqlDatabaseConfig(
        'localhost', // required
        5432, // required
        username: 'user', // required
        password: 'password', // required
        maxConnections: 5, // required
        databaseName: 'database', // optional
        secure: true, // optional
        collation: 'utf8mb4_general_ci', // optional
        timeoutMs: 10000, // optional
    ),
);

to open a connection

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

Publisher

verified publisherathena-sql.dev

Dart MySQL 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 #mysql

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

athena_sql, mysql_client, path

More

Packages that depend on athena_mysql