# sqflite

> SQLite plugin for Flutter apps on Android, iOS and macOS

Source: https://talira.ai/catalog/sqflite-p8s14h5h
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / drivers](https://talira.ai/categories/libraries/databases/drivers), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-2-Clause[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Alexandre Roux](https://talira.ai/orgs/alexandre-roux.md)

sqflite is a Flutter plugin for [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md): a SQL database in a file on Android, iOS and macOS, with SQL run on a background thread so it never blocks the UI. It handles transactions and batches, schema versions when a database opens (onCreate and onUpgrade), and helpers for insert, query, update and delete. Companion packages run the same API on Windows, Linux, the Dart VM and unit tests (sqflite_common_ffi), and experimentally on the web (sqflite_common_ffi_web).

## Links

- GitHub: https://github.com/tekartik/sqflite
- Docs: https://pub.dev/documentation/sqflite/latest/sqflite/sqflite-library.html

## Problems it solves

- store data in a local SQL database in my Flutter app
- run SQLite queries in Flutter without blocking the UI thread
- use the same SQLite code in a Flutter app on mobile and desktop

## Features

- Transactions and batches
- Schema version management on open (onCreate, onUpgrade)
- Insert, query, update and delete helpers
- SQL on a background thread on Android, iOS and macOS
- Same API on Windows, Linux, the Dart VM and in unit tests through sqflite_common_ffi

## Limitations

- Web support is experimental[^1]

## Trust

Overall: 0.65 out of 1.
Signals: maintenance 1.00, adoption 0.70, momentum 0.43, community 0.74, backing 0.30, extensibility 0.00.

- last commit 14 days ago
- 81 commits in the last 90 days
- 3.0k GitHub stars
- 68 contributors
- accepts sponsorship (Github)
- backed by Alexandre Roux

## Related

- Works with [Flutter](https://talira.ai/catalog/flutter-nhwgvsth.md)
- Works with [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md)

## Alternatives

- [sembast](https://talira.ai/catalog/sembast-2rh79hc8.md): Embedded NoSQL document database for Dart and Flutter, stored in a single file
- [sqlite3 (Dart)](https://talira.ai/catalog/sqlite3-dart-x27mgkbe.md): SQLite bindings for Dart on native platforms and the web

## Sources

[^1]: https://github.com/tekartik/sqflite/blob/master/README.md (checked 27 Nov 2026)
[^2]: https://github.com/tekartik/sqflite/blob/master/LICENSE (checked 27 Nov 2026)
