FLUTTER ECOSYSTEM

sqlite3

Provides lightweight yet convenient bindings to SQLite by using dart:ffi

Latest version
3.3.1
30-day downloads
1.2M
Likes
449
Pub points
150

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

The sqlite3 package provides lightweight and convenient bindings to SQLite using Dart's FFI (Foreign Function Interface), enabling efficient, native-level access to SQLite databases across multiple platforms. It is designed for developers who need a reliable, embedded SQL database solution without the overhead of complex abstractions. The package supports Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform applications requiring local data persistence with full SQL support.

Use cases
  • Offline data storage in mobile apps
  • Cross-platform desktop and web applications
  • Lightweight database needs in Flutter projects
  • Real-time data synchronization with local caching
  • Embedding SQL capabilities in serverless functions
Key features
  • Native performance via dart:ffi
  • Full SQL support including transactions
  • Cross-platform compatibility
  • Minimal memory footprint
  • Easy integration with Flutter
  • Supports prepared statements and parameterized queries
Suitable for
  • Developers needing fast, low-level SQLite access
  • Projects requiring offline-first functionality
  • Apps with moderate to high database usage
  • Teams preferring minimal dependencies
  • Flutter apps targeting multiple platforms
Considerations
  • Requires familiarity with SQLite and SQL
  • Limited higher-level abstractions compared to ORM libraries
  • Manual management of connections and resources
  • Not recommended for very large datasets without optimization
  • May require additional setup on Web due to JS interop constraints
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add sqlite3

Categories

Source repository

Related projects