Viewing version 2.4.5. Open the latest package page.

sqflite_android

2.4.5

Android flutter plugin for SQLite, a self-contained, high-reliability, embedded, SQL database engine.

Download archive

Readme

sqflite_android

The Android implementation of the sqflite plugin.

Changelog

2.4.5

  • Fix every later call hanging after a failed COMMIT or ROLLBACK (e.g. a deferred foreign key violation at commit): the transaction is ended, and rolled back if SQLite left it open.
  • Fix an open lost (hang, or crash with several worker threads) when it follows a close that was not awaited.
  • Use propName = value assignments in android/build.gradle (the space syntax is deprecated in Gradle 9 and removed in Gradle 10, #1217).
  • Fix statements committed outside of any transaction after SQLite rolled back the transaction by itself (ConflictAlgorithm.rollback, RAISE(ROLLBACK)...): the transaction is now ended and the client marks it closed (requires sqflite_platform_interface 2.4.3).
  • execute supports a PRAGMA returning a row (e.g. PRAGMA journal_mode=WAL, #929, #1176).

2.4.4+1

  • Add sqflite-android-setup agent skill in skills/, installable with dart run skills@ get

2.4.3

  • Updates minimum supported SDK version to Flutter 3.44 / Dart 3.12.
  • Migrates to built-in Kotlin.

2.4.2+3

  • Use compile statement for insert/update and delete to avoid invalid result in wal mode
  • Requires dart 3.10

2.4.2+2

  • Requires compile SDK 36
  • Requires dart 3.9

2.4.1

  • Requires dart 3.7

2.4.0

  • Initial implementation from sqflite v2.3.3+2

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'sqflite_android:2.4.5'
pubspec.yaml
name: sqflite_android
repository: https://github.com/tekartik/sqflite/tree/master/sqflite_android
issue_tracker: https://github.com/tekartik/sqflite/issues
description: Android flutter plugin for SQLite, a self-contained, high-reliability,
  embedded, SQL database engine.
version: 2.4.5

# This package supports all platforms listed below.
platforms:
  android:

topics:
  - sql
  - database

funding:
  - https://github.com/sponsors/alextekartik

environment:
  sdk: ^3.12.0
  # requires AGP 9.0
  flutter: ">=3.44.0"

flutter:
  plugin:
    platforms:
      android:
        package: com.tekartik.sqflite
        pluginClass: SqflitePlugin
        dartPluginClass: SqfliteAndroid

dependencies:
  flutter:
    sdk: flutter
  sqflite_common: ">=2.5.9 <4.0.0"
  path: ">=1.8.0 <3.0.0"
  sqflite_platform_interface: ">=2.4.3 <4.0.0"

dev_dependencies:
  flutter_lints: ">=5.0.0"
  process_run: ">=0.12.0"
  http: ">=0.13.0"
  flutter_test:
    sdk: flutter
  test_api: ">=0.2.19"
  pub_semver: ">=2.0.0"

Version history

VersionPublishedArchiveSHA-256
2.4.0-0On demandDownloadc3cd995b…6af002
2.4.0-1On demandDownload11821baf…f9dc56
2.4.0On demandDownload78f489aa…dd9ee3
2.4.1On demandDownload2b3070c5…a1701b
2.4.2-1On demandDownload08118b0a…05de0f
2.4.2On demandDownloaddc76402d…cb8fdd
2.4.2+1On demandDownload38547a3d…056eca
2.4.2+2On demandDownloadecd68450…bfea88
2.4.2+3On demandDownload881e28ef…3dec40
2.4.3On demandDownloadd0548f9d…01983b
2.4.4On demandDownload805b27c6…bb5421
2.4.4+1On demandDownloade4f659c1…68a835
2.4.5Cached · Upstream SHA-256 matchedDownload3986f4cb…a0bdd4

Dependencies

flutter { "sdk": "flutter" }

path "\u003e=1.8.0 \u003c3.0.0"

sqflite_common "\u003e=2.5.9 \u003c4.0.0"

sqflite_platform_interface "\u003e=2.4.3 \u003c4.0.0"