dart-drift
CommunityEnable reliable local storage with drift.
AuthorMADTeacher
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Dart applications often need reliable, cross-platform persistent storage. Drift provides a type-safe ORM for SQLite (with optional PostgreSQL) that works in CLI, server, and desktop Dart projects without Flutter.
Core Features & Use Cases
- Type-safe queries, migrations, and reactive streams for Dart projects.
- Cross-platform persistence with SQLite and optional PostgreSQL support, suitable for CLI tools, backend services, and non-Flutter desktop apps.
- Real-world use: build a backend service that stores data locally and evolves the schema over time.
Quick Start
- Add drift and sqlite3 to pubspec.yaml, then run code generation with build_runner.
- Define your tables and create an AppDatabase class.
- Open a database connection (NativeDatabase.memory() for tests or LazyDatabase for file-based storage) and start using drift.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dart-drift Download link: https://github.com/MADTeacher/mad-agents-skills/archive/main.zip#dart-drift Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.