sqflite_ffi 0.1.0+1 copy "sqflite_ffi: ^0.1.0+1" to clipboard
sqflite_ffi: ^0.1.0+1 copied to clipboard

sqflite ffi based implementation for flutter, sharing the sqflite isolate between isolates using IsolateNameServer.

example/main.dart

import 'dart:io';

import 'package:sqflite_ffi/sqflite_ffi.dart';

Future main() async {
  // Init ffi loader if needed.
  sqfliteFfiInit();

  var databaseFactory = sqfliteDatabaseFactoryFfi;
  var db = await databaseFactory.openDatabase(inMemoryDatabasePath);
  stdout.writeln(
    (await db.rawQuery('SELECT sqlite_version()')).first.values.first,
  );
  await db.close();
}
0
likes
160
points
39
downloads

Documentation

API reference

Publisher

verified publishertekartik.com

Weekly Downloads

sqflite ffi based implementation for flutter, sharing the sqflite isolate between isolates using IsolateNameServer.

Repository (GitHub)
View/report issues

Topics

#sql #database

Funding

Consider supporting this project:

github.com

License

BSD-2-Clause (license)

Dependencies

flutter, sqflite_common_ffi

More

Packages that depend on sqflite_ffi

Packages that implement sqflite_ffi