sqlite3_js_interop library
Functions
-
callSqlite(
String method, JSArray< JSAny?> args) → JSPromise<JSObject?> -
exec(
String sql, [List bind = const []]) → Future< void> - Executes a SQL statement without returning results.
-
init(
String filename, String mode) → Future< void> - Initializes the SQLite database.
-
listToJSArray(
List list) → JSArray< JSAny> - Converts a Dart List to a JavaScript Array. fucking flutter; if using else if (item is num || item is bool || item is String) it will throw error NoSuchMethodError: 'toJS' method not found Handles conversion of primitive types (String, num, bool) and falls back to string representation for other types.
-
query(
String sql, [List bind = const []]) → Future< List< Map< >String, dynamic> > - Executes a SQL query and returns the results.
Exceptions / Errors
- SqliteException
- Exception thrown when SQLite operations fail