access 1.2.1 access: ^1.2.1 copied to clipboard
A simple database utility for the entity library and PostgreSQL.
Changes #
1.2.1
access()
'scommand
argument can returnFutureOr<T>
1.2.0
DBAccess.afterCommit()
andafterRollback()
will execute the given task even if the connection was closed -- depending it was committed or rolled back. Also, the task can return aFuture
instance.
1.1.1
DBAccess.close()
introduced to allow user to force a transaction to close earlier.
1.1.0
DBAccess.tag
andconfigure()
'sonTag
no longer supported.onSlowSql
andonPreSlowSql
's signatures changed.configure()
'sslowSql
renamed toslowSqlThreshold
.
1.0.6
onPreSlowSql
introduced to log the information about locks when detecting a slow SQL statement.
1.0.5
primaryKey
introduced to define a table with multi-column primary key.
1.0.4
not()
introduced to specify a negative condition in thewhereValues
condition.
1.0.2
Index()
supportswhere
for creating a partial index.
0.11.3
- API of sqlWhereBy is changed -- no option argument
0.11.1
- Adds the
otype
argument toUnboundReference()
for documentation purpose
0.11.0
- Use named paramters instead of positional parameters for declaring types
- The column that
Reference()
references can be specified.
0.10.1
afterComment()
andafterRollback()
can return an optional Future instance
0.10.0
Citext
added- The signature of the create method is changed.
0.9.10
- Slow SQL warning logs the previous SQL statement instead if it is
commit
0.9.8
- The signature of the shallLogError argument has been changed.
0.9.7
- Apply the generic method syntax (so it requires Dart 1.21 or later)
0.9.3
- DBAccess.rollingback is never null. If null is assigned, false will be stored instead.
0.9.1
- Support virtual columns
0.9.0
- Remove
DBAccess.after()
, and replaced withDBAccess.afterCommit()
andDBAccess.afterRollback()
. DBAccess.rollingback
can be set with any value.