![]() ![]() The list of tables is used by the reactive part of the library to know what tables are included in a query (via the watch command) and what tables are affected by a particular sql operation (via the execute method that is called by all the other simplified methods: insert, update, delete. Parameters can be included in the SQL query as ? ( SELECT * from users where id = ?). Most of the methods accept a sql string, an optional list of parameters and an optional list of tables. Sqlite_wrapper must be invoked as a singleton (the class returns always the same instance) so there's no need to create or store it in a variable, SQLiteWrapper() always returns the same instance. Install the sqlite3_flutter_libs to include the latest version of SQLite on iOS and MacOS (optional) or to make the sqllite3 package work in Android, Windows and Linux (required).Ī full working Flutter Todos example (what else!) is provided in the /example folder but here's some information about the available methods (check even the /test folder for additional examples).execute a callback when the database is created or when should be migrated to a new schema version.connect to multiple databases by providing a dbName.watch (via streams) for a particular query, getting results reactively and instantly updated.work with the DB using encoded and decoded maps or model objects.This package provide just a few methods that allow to: ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |