database_sql 0.0.2
database_sql: ^0.0.2 copied to clipboard
Package database_sql provides a generic interface around SQL-like databases. The sql package must be used in conjunction with a database driver.
0.0.2 #
- Fix close without await
0.0.1 (Initial Release Version) #
-
Introduce Driver APIs
- Register a driver method
registerDriver - Ability to check driver with
isDriverRegistered - Open Database connection via
open - Open Database connection with
protectto ensure database connection close after work done.
- Register a driver method
-
Introduce Database APIs
- Create transaction with
protect - Prepare Read/Write Statement
prepare - Query execution via
execandquery - Protect query execution via
protectQuery - Protect transaction execution via
protectTransaction - For database engine with server/client, developer can check the connection via
pingit will reestablished if the connection lost.
- Create transaction with
-
Introduce Statement APIs
- Query execution via
execon WriteStatement andqueryon ReadStatement - Ability to reset the statement to for reusable and multiple execution via
reset
- Query execution via
-
Introduce Transaction APIs
- Commit the transaction via
apply - Rollback the transaction via
cancel - Prepare Read/Write Statement
prepare - Query execution via
execandquery - Protect query execution via
protectQuery
- Commit the transaction via
-
Introduce 2 type of reader api
ValueReaderprovide ability to read data from database objectvalueAtread value from database object by index. The value type is determine by database value type and the type of variable reciever in dart.intValueAtread integer value.stringValueAtread string value.doubleValueAtread double value.blobValueAtread binary value.
RowReaderprovide the ability to read data from database result set of the query selection result. It provide the same method toValueReaderwith additional APIs to read data via column namevalueBy,intValueBy,stringValueBy,doubleValueByandblobValueBy.
-
Introduce
SQLValuean abstract class that provide a methodvaluewhich return the data type that represent the object and compatible with database engine data type. -
Introduce
Changesa result from writing query. -
Introduce
Rowsa result from reading query implement dartiterator. -
Introduce
Rowdefault row data of the result set. -
Introduce
RowCreatora function that create an custom object to represent a row of the reading result set. -
Introduce
AggregatorFunctiona class that store aggregate function metadata. Depend on database engine, some database will not support custome function at all. -
Introduce
DatabaseFunctiona class that store function metadata. Depend on database engine, some database will not support custome function at all.