Skip to content

Commit

Permalink
fix bugs in onOpen callback to configure connection settings, improve…
Browse files Browse the repository at this point in the history
…ments to README, implemented connection pool for 'postgres' (v2) driver_implementation
  • Loading branch information
Isaque Neves committed Apr 19, 2024
1 parent 8609534 commit e0b637f
Show file tree
Hide file tree
Showing 16 changed files with 2,635 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .pubignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See https://www.dartlang.org/guides/libraries/private-files

# Files and directories created by pub
.dart_tool/
.packages
build/
# If you're building an application, you may want to check-in your pubspec.lock
pubspec.lock

# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
doc/api/

# dotenv environment variables file
.env*

# Avoid committing generated Javascript files:
*.dart.js
*.info.json # Produced by the --dump-info flag.
*.js # When generated by dart2js. Don't specify *.js if your
# project includes source files written in JavaScript.
*.js_
*.js.deps
*.js.map

.flutter-plugins
.flutter-plugins-dependencies

main.exe
teste_concorrencia.dart
teste_utils.dart
teste_insert_get_id.dart
6 changes: 2 additions & 4 deletions lib/src/pdo/postgres/dependencies/executor/executor.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

library executor;

import 'dart:async';
import 'dart:collection';

import 'package:stack_trace/stack_trace.dart';

import 'package:eloquent/src/pdo/postgres/dependencies/stack_trace/stack_trace.dart';

/// An async task that completes with a Future or a value.
typedef AsyncTask<R> = FutureOr<R>? Function();
Expand Down Expand Up @@ -289,4 +287,4 @@ class _Item<R> {
// Nullable R is used here so that we can return null during catchError
final result = Completer<R?>();
final done = Completer();
}
}
Loading

0 comments on commit e0b637f

Please sign in to comment.