Coder Social home page Coder Social logo

ehesp / drift Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simolus3/drift

0.0 1.0 0.0 19.46 MB

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

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

License: MIT License

Dart 99.59% Shell 0.13% Java 0.03% Kotlin 0.01% Swift 0.04% Objective-C 0.04% HTML 0.04% Ruby 0.12%

drift's Introduction

Drift

Note: Moor has been renamed to drift

Build Status Chat on Gitter

Proudly Sponsored by Stream ๐Ÿ’™


Try the Flutter Chat Tutorial ย ๐Ÿ’ฌ

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 let's 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 typesafe 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.


Important packages in this repo:

  • 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

drift's People

Contributors

abdelrahmanelmarakby avatar alextekartik avatar ali1ammar avatar anatta-feng avatar boumenot avatar bryanoltman avatar cervonwong avatar davidmartos96 avatar dmitriyzaitsev avatar festelo avatar friebetill avatar hosseinyousefi avatar jamieastley avatar kuhnroyal avatar lefrosch avatar lsaudon avatar maistho avatar marcgraub avatar micimize avatar mqus avatar nash0x7e2 avatar nicolaverbeeck avatar pin73 avatar simolus3 avatar vitaminwater avatar westito avatar yanivshaked avatar yeungkc avatar yohom avatar yshahak avatar

Watchers

 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.