Giter VIP home page Giter VIP logo

adam-langley / drift Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simolus3/drift

0.0 0.0 0.0 26.64 MB

Drift is an easy to use, reactive, typesafe persistence library for Dart & Flutter.

Home Page: https://drift.simonbinder.eu/

License: MIT License

Shell 0.01% Ruby 0.12% C++ 0.65% C 0.04% Objective-C 0.01% Kotlin 0.01% Dart 98.44% Swift 0.05% HTML 0.08% Smarty 0.01% CMake 0.55% Dockerfile 0.02%

drift's Introduction

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 ๐Ÿ’™


Try the Flutter Chat Tutorial ย ๐Ÿ’ฌ

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.

drift's People

Contributors

simolus3 avatar westito avatar dickermoshe avatar valentinvignal avatar davidmartos96 avatar bananamasterz avatar lefrosch avatar kuhnroyal avatar abitofevrything avatar fafre avatar nikitadol avatar mqus avatar tibotix avatar micimize avatar jmatth avatar cervonwong avatar gp4ck avatar heinrich-vannieuwenhuizen avatar yanivshaked avatar bascoe10 avatar pin73 avatar abdelrahmanelmarakby avatar yohom avatar alextekartik avatar tt88dev avatar friebetill avatar hosseinyousefi avatar boumenot avatar ali1ammar avatar bryanoltman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.