dart-drift

Implement persistent storage in Dart applications using Drift with SQLite or PostgreSQL.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/maxkishchenko2015/Web_ART_Galery --skill dart-drift-maxkishchenko2015
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dart-drift
Source: https://github.com/maxkishchenko2015/Web_ART_Galery/tree/main/agent_skills/dart-drift
Command: npx skills add https://github.com/maxkishchenko2015/Web_ART_Galery --skill dart-drift-maxkishchenko2015

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Drift provides a typed, reactive path to adding persistent storage to Dart apps, simplifying data access and migrations.

Core Features & Use Cases

  • Type-safe queries, migrations, and reactive streams for Dart CLI tools, backend services, and non-Flutter desktop apps.
  • Built-in SQLite support with sqlite3 and optional PostgreSQL support via drift_postgres, including connection pooling and server-side patterns.
  • Real-world use cases include offline-first apps, data synchronization, and tooling that requires reliable data persistence.

Quick Start

Create a Drift database class, connect to SQLite or PostgreSQL, and run migrations to start using persistent storage.

Frequently Asked Questions about dart-drift

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up persistent storage in Dart using Drift?

Drift provides a typed, reactive path to persistent storage in Dart apps, simplifying data access, migrations, and query safety for CLI tools, backend services, and non-Flutter desktop applications requiring reliable data persistence.

Can I use Drift with PostgreSQL in a Dart backend service?

Yes, Drift supports PostgreSQL in Dart backend services via the drift_postgres package, enabling connection pooling, server-side usage patterns, and type-safe queries for robust data persistence.

Does Drift support reactive streams for SQLite queries in Dart?

Yes, Drift supports reactive streams for SQLite queries in Dart apps, automatically updating UI or logic layers whenever underlying data changes using sqlite3 integration. This built-in reactive stream support applies to both SQLite and PostgreSQL connections.

What is the best way to run database migrations in Dart CLI tools?

The best way to manage database migrations in Dart CLI tools is using Drift's built-in migration strategies, ensuring type-safe schema evolution and reliable persistent storage across SQLite and PostgreSQL connections.

Do I need Flutter to use Drift for desktop app data persistence?

No, you do not need Flutter to use Drift. It applies directly to non-Flutter desktop apps, CLI tools, and backend services requiring type-safe queries, migrations, and reliable SQLite or PostgreSQL storage.