패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.3.1

drift_flutter

Flutter 앱에서 플랫폼 간에 쉽게 드리프트 데이터베이스를 설정할 수 있습니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
61.5만
좋아요
70
Pub 점수
160

패키지 설치

flutter pub add drift_flutter

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Drift Flutter는 Flutter 앱을 위한 강력하고 크로스플랫폼 데이터베이스 솔루션으로, SQLite 데이터베이스의 설정과 관리를 간소화합니다. 타입 안전하고 반응형 API를 제공하여 데이터를 쿼리하고 수정할 수 있으며, 마이그레이션, 백그라운드 실행 및 실시간 업데이트를 지원합니다. Drift 위에 구축되어 Android, iOS, Web, macOS, Windows, Linux에서 원활한 통합이 가능합니다. 이 패키지는 봇일러플레이트를 줄이고 복잡한 데이터베이스 작업을 위한 직관적인 문법을 제공함으로써 개발자 생산성을 향상시킵니다.

사용 사례

  • 오프라인 우선 모바일 애플리케이션
  • 실시간 데이터 동기화
  • 크로스 플랫폼 데이터 지속성
  • 복잡한 쿼리 처리
  • 로컬 스토리지와 함께 앱 상태 관리
  • 오프라인 데이터 캐싱

주요 기능

  • 타입 안전한 SQL 쿼리
  • 반응형 데이터베이스 스트림
  • 자동 스키마 마이그레이션
  • 다중 플랫폼 지원
  • 백그라운드 데이터베이스 작업
  • 직관적인 Dart API

적합한 대상

  • 오프라인 기능을 갖춘 앱을 개발하는 개발자
  • 다양한 플랫폼 간에 일관된 데이터베이스 동작을 필요로 하는 팀
  • 실시간 데이터 업데이트가 필요한 앱
  • 복잡한 데이터 모델을 가진 프로젝트
  • 공유 선호 사항의 강력한 대안을 찾는 Flutter 개발자

고려 사항

  • SQL 및 데이터베이스 설계에 대한 이해가 필요합니다
  • 트랜잭션과 같은 고급 기능에 대한 학습 곡선
  • SQLite 포함으로 인해 앱 크기가 증가할 수 있습니다
  • 간단한 키-값 저장 요구 사항에 적합하지 않습니다
  • 성숙한 대안에 비해 문서가 제한적

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Drift

Build Status Using melos

Core Generator
Main version Generator version

Drift is a reactive persistence library for Flutter and Dart, built on top of SQLite. Drift is:

  • Flexible: Drift lets you write queries in both SQL and Dart, providing fluent apis for both languages. You can filter and order results or use joins to run queries on multiple tables. You can even use complex SQL features like WITH and WINDOW clauses.
  • 🔥 Feature rich: Drift has builtin support for transactions, schema migrations, complex filters and expressions, batched updates and joins. We even have a builtin IDE for SQL!
  • 📦 Modular: Thanks to builtin support for daos and imports in SQL files, drift helps you keep your database code simple.
  • 🛡️ Safe: Drift generates type-safe code based on your tables and queries. If you make a mistake in your queries, drift will find it at compile time and provide helpful and descriptive lints.
  • ⚡ Fast: Even though drift lets you write powerful queries, it can keep up with the performance of key-value stores like shared preferences and Hive. Drift is the only major persistence library with builtin threading support, allowing you to run database code across isolates with zero additional effort.
  • Reactive: Turn any SQL query into an auto-updating stream! This includes complex queries across many tables.
  • ⚙️ Cross-Platform support: Drift works on Android, iOS, macOS, Windows, Linux and the web. This template is a Flutter todo app that works on all platforms.
  • 🗡️ Battle tested and production ready: Drift is stable and well tested with a wide range of unit and integration tests. It powers production Flutter apps.

With drift, persistence on Flutter is fun!

To start using drift, read our detailed docs.

If you have any questions, feedback or ideas, feel free to create an issue. If you enjoy this project, I'd appreciate your 🌟 on GitHub.

Sponsors

Drift is proudly Sponsored by Stream 💙 and PowerSync.


Try the Flutter Chat Tutorial  💬

Try PowerSync with Supabase

Working on this project

This repository contains a number of packages making up the drift project, most notably:

  • drift: The main runtime for drift, which provides most APIs.
  • drift_dev: The compiler for drift tables, databases and daos. It also contains a fully-featured SQL IDE for the Dart analyzer.
  • sqlparser: A SQL parser and static analyzer, written in pure Dart. This package can be used without drift to perform analysis on SQL statements. It's on pub at sqlparser.

We use melos to manage the different packages in this repository.

You can install it with dart pub global activate melos. To activate it in this repository, run dart pub get in this directory followed by melos bootstrap.

카테고리

의존성

의존성 목록 7 개

소스 저장소

이 패키지를 사용하는 프로젝트