FLUTTER ECOSYSTEM

drift_sqflite

A Flutter-only implementation of a drift database, based on the `sqflite` package.

Latest version
2.0.1
30-day downloads
9.5K
Likes
23
Pub points
160

Package Overview

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

Overview

Drift_sqflite is a Flutter-specific implementation of the Drift database library, leveraging the sqflite package for persistent SQL storage. It enables efficient, type-safe database operations with support for queries, migrations, and real-time updates. Designed for use on Android, iOS, and macOS, it integrates seamlessly into Flutter apps requiring local data persistence with strong typing and compile-time checks. The package simplifies working with SQLite by providing a clean, expressive API while maintaining performance and reliability.

Use cases
  • Offline-first mobile applications
  • Real-time data synchronization
  • Local caching of app data
  • Complex query handling in Flutter apps
  • Database migrations in Flutter
Key features
  • Type-safe database queries
  • Compile-time SQL validation
  • Real-time data updates
  • Support for migrations
  • Efficient SQLite integration via sqflite
Suitable for
  • Flutter developers needing local SQL databases
  • Apps requiring robust offline functionality
  • Teams prioritizing code safety and maintainability
  • Projects with complex data models
  • Developers using sqflite with enhanced tooling
Considerations
  • Requires knowledge of SQL and Dart
  • Limited to platforms supported by sqflite
  • May increase app size due to generated code
  • Not suitable for cloud-based or server-side databases
  • Dependent on drift's ecosystem for full functionality
Supported platformsAndroidiOSmacOS

Install package

flutter pub add drift_sqflite

Categories

Source repository

Related projects

No data available yet.