sqlite3_native_assets 0.0.3 copy "sqlite3_native_assets: ^0.0.3" to clipboard
sqlite3_native_assets: ^0.0.3 copied to clipboard

Access to SQLite with the `sqlite3` package and the upcoming "Native assets" feature. This package will eventually replace `sqlite3_flutter_libs`.

Like native assets, this package is experimental.

This package provides SQLite as a native code asset.

It has the same functionality as the sqlite3_flutter_libs package, except that it works without Flutter.

Getting started #

Add this package to your dependencies: dart pub add sqlite3_native_assetes. That's it! No build scripts to worry about, it works out of the box.

Usage #

You can keep using all your existing code using package:sqlite3. The only difference is how you access it. For now, you'll have to replace the top-level sqlite3 getter with sqlite3Native.

import 'dart:io';

import 'package:sqlite3/sqlite3.dart';
import 'package:sqlite3_native_assets/sqlite3_native_assets.dart';

void main() {
  final Sqlite3 sqlite3 = sqlite3Native;
  print('Using sqlite3 ${sqlite3.version}');
}
copied to clipboard
0
likes
160
points
264
downloads

Publisher

verified publishersimonbinder.eu

Weekly Downloads

2024.09.10 - 2025.03.25

Access to SQLite with the `sqlite3` package and the upcoming "Native assets" feature. This package will eventually replace `sqlite3_flutter_libs`.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

archive, http, logging, native_assets_cli, native_toolchain_c, path, sqlite3

More

Packages that depend on sqlite3_native_assets