access 3.7.2
access: ^3.7.2 copied to clipboard
A simple database utility for the entity library and PostgreSQL.
Changes #
3.7.2
- Improves the generation of limit 1 for
queryAnyFrom
3.7.1
- The
valuesparamter ofDBAccess.queryandexecutemust beMap. DBAccess.queryByandqueryAnyBysupport theshortcutparameter.
3.6.2
- Fix:
DBAccess.queryFrom()accepts an empty string forwhereClause.
3.6.1
- Fix #10: assume
like()'s pattern was encoded properly if escape is specified
3.6.0
likeandnotLikeadded for generating the LIKE clause forqueryByandqueryAnyByencodeTextInLikeandencodeTextInRegexadded.sqlWhereBysupports an empty key for appendingorder byorgroup byat the end.
3.5.0
queryWithdeprecated and replaced withqueryFromqueryAnyWithdeprecated and replaced withqueryAnyFrominListandnotInadded for generating the IN clause forqueryByandqueryAnyByloadWhiledeprecated. Please useawaitinstead.Notrenamed toNotCondition
3.1.1
addSqlColumnsadded.queryWith'swhereClausecan have no condition, butorder,limit...
3.1.0
onAccess's signature changed.
3.0.1
- The
onAccesscallback added for monitoring the transactions.
2.6.1
pgInvalidRegex,pgProgramLimitExceededandpgOutOfMemoryadded.
2.6.0
- The signature of
shallLogErrorcallback changed tobool shallLogError(DBAccess access, String sql, Object ex).
2.5.2
onQueryandonExecuteofconfigure()are deprecated. Please configure Pool instead.
2.5.1
DBAccess.existsadded
2.5.0
- Use
AccessOptionintroduced in entity 2.5.0
2.0.2
DBAccess.toEntityNSadded
2.0.0
- Migrate to null safety
1.6.4
onQueryandonExecutesupported inconfigurefor easy debugging.
1.6.2
accessCountintroduced for knowing number of accesses being executed.
1.6.0
- The signature of
onSlowSqlchanged. An extra argument calledvaluesadded.
1.5.0
DBAccess.begin()introduced for users to control transactions explicitly.
1.3.1
DBAccess.isRollingbackintroduced.
1.3.0
configure()'sonPreSlowSqlargument is enhanced. You can store the message inonPreSlowSqland retrieve it back inonSlowSql.
1.2.1
access()'scommandargument 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 aFutureinstance.
1.1.1
DBAccess.close()introduced to allow user to force a transaction to close earlier.
1.1.0
DBAccess.tagandconfigure()'sonTagno longer supported.onSlowSqlandonPreSlowSql's signatures changed.configure()'sslowSqlrenamed toslowSqlThreshold.
1.0.6
onPreSlowSqlintroduced to log the information about locks when detecting a slow SQL statement.
1.0.5
primaryKeyintroduced to define a table with multi-column primary key.
1.0.4
not()introduced to specify a negative condition in thewhereValuescondition.
1.0.2
Index()supportswherefor creating a partial index.
0.11.3
- API of sqlWhereBy is changed -- no option argument
0.11.1
- Adds the
otypeargument 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
Citextadded- 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.rollingbackcan be set with any value.