dart_gdbc_pool 0.0.4+1 copy "dart_gdbc_pool: ^0.0.4+1" to clipboard
dart_gdbc_pool: ^0.0.4+1 copied to clipboard

An implementation of connection pool for dart_gdbc. Mush be used with dart_gdbc.

example/lib/example.dart

// Copyright (c) 2023- All dart_gdbc_pool authors. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

import 'package:dart_gdbc/dart_gdbc.dart';
import 'package:dart_gdbc_pool/dart_gdbc_pool.dart';

main() async {
  var dm = await DriverManager.getConnection(
    "db's url",
    username: "username",
    password: "password",
    pooledConnection: StateConnectionPool(
      config: PoolConfig(
        minSize: 1,
        maxSize: 10,
        idle: const Duration(minutes: 2),
        checkInterval: const Duration(seconds: 5 * 60 - 1),
        lifetime: const Duration(minutes: 5),
      ),
    ),
  );
  dm.executeQuery("cypher ...");
}
0
likes
160
pub points
41%
popularity

Publisher

verified publisherdudu.ltd

An implementation of connection pool for dart_gdbc. Mush be used with dart_gdbc.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

dart_gdbc

More

Packages that depend on dart_gdbc_pool