postgresql2 0.7.5+1
postgresql2: ^0.7.5+1 copied to clipboard
A temporary fork of Greg's PostgreSQL driver (xxgreg/postgresql) using conserved substitution respecting strings and @@ operators. also optimizing the pool implementation aggressivly.
0.7.5 #
- If
freeConnectionsis set, we'll retry a bit before establishing a new connection, if number of connections exceeds [freeConnections]. It helps to reduce number of connections if there are a lot of short-lived connections.
0.7.4 #
Settings.onMaxConnectionintroduced to monitor the usage of DB connections.
0.7.3 #
freeConnectionsintroduced to control maximal number of connections kept in a pool.
0.7.0 #
- Breaking: the substition with a Map instance won't treat number identifiers specially. For example, if
@0is specified, it will consider the identifier as'0'and retrievevalues['0'].
0.6.0 #
- Array type with single dimension supported.
isUtcTimeZoneremoved fromDefaultTypeConverter.decodeDateTime()and related functions.DefaultTypeConverter.decodeDateTime()converts the DateTime instance to local time by callingDateTime.toLocal().
0.5.8 #
encodeString()ignores thetrimNullargument. Now it always removes the null characters.
0.5.7 #
Pool.busyConnectionCountcounts onlyinUse.
0.5.6 #
Connect.runInTransactionreturns the result of the transaction operation.
0.5.5 #
Pool.debugNameremoved.- Make the pool more likely to shrink.
0.5.4 #
PoolImplwith two new methods:pooledConnectionCountandbusyConnectionCount
0.5.3 #
- Support BigInt.
- Note:
_PG_NUMERICwill be converted toBigInt, if possible (instead ofString). Otherwise, it is converted to aStringinstance.
- Note:
0.5.2 #
- Upgrade to Dart 2.5
0.3.4 #
- Update broken crypto dependency.
0.3.3 #
- Fix #73 Properly encode/decode connection uris. Thanks to Martin Manev.
- Permit connection without a password. Thanks to Jirka Daněk.
0.3.2 #
- Improve handing of datetimes. Thanks to Joe Conway.
- Remove manually cps transformed async code.
- Fix #58: Establish connections concurrently. Thanks to Tom Yeh.
- Fix #67: URI encode db name so spaces can be used in db name. Thanks to Chad Schwendiman.
- Fix #69: Empty connection pool not establishing connections.
0.3.1+1 #
- Expose column information via row.getColumns(). Credit to Jesper Håkansson for this change.
0.3.0 #
-
A new connection pool with more configuration options.
-
Support for json and timestamptz types.
-
Utc time zone support.
-
User customisable type conversions.
-
Improved error handling.
-
Connection.onClosed has been removed.
-
Some api has been renamed, the original names are still functional but marked as deprecated.
- import 'package:postgresql/postgresql_pool.dart' => import 'package:postgresql/pool.dart'
- Pool.destroy() => Pool.stop()
- The constants were upper case and int type. Now typed and lower camel case to match the style guide.
- Connection.unhandled => Connection.messages
- Connection.transactionStatus => Connection.transactionState
Thanks to Tom Yeh and Petar Sabev for their helpful feedback.