# tekartik/sqflite

SQLite flutter plugin

Repository: https://github.com/tekartik/sqflite
Canonical: https://ross.abutalabs.com/products/sqflite
Language: Dart
License: BSD-2-Clause
License Family: permissive
Last push: 2026-08-16T15:35:10+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 3390, "days_push": 17, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3017, forks 555 (observed 2026-08-28T04:07:38.406747+00:00)

## What it is
sqflite is a SQLite plugin for Flutter providing local database access on iOS, Android, and macOS, with Linux/Windows support via sqflite_common_ffi. It supports transactions, batches, automatic version management during open, and executes DB operations in a background thread.

## Use cases
- store app data locally in a flutter app
- use sqlite database on ios and android
- run sql queries from dart
- manage database schema versions on app upgrade
- insert and query records in a local mobile database
- execute database operations off the ui thread

## When to choose
- building a flutter app that needs persistent structured local storage
- you need transactions and batch operations in sqlite from dart
- you want automatic database version migration handling on open

## When to avoid
- you need a reactive/no-sql local store like shared preferences or hive for simple key-value data
- you need a server-side or cloud-synced database rather than on-device storage
- your project is not flutter/dart based

## Facets
- artifact type: plugin
- maturity: stable
- function: database, database-driver, orm
- domain: mobile-development, databases, cross-platform
- platform: cross-platform
- tags: sqlite, flutter-plugin, local-database, transactions, android, ios, macos, flutter

## Member repositories
- tekartik/sqflite (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:38.406747+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:30:03.662665+00:00, confidence not recorded.
  - readme: https://github.com/tekartik/sqflite (fetched 2026-08-28T04:07:38.406747+00:00, sha b2e51c20f00b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
