chi-w-ng / objectbox-dart

The Flutter database for super-fast Dart object persistence

Home Page:https://pub.dev/packages/objectbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ObjectBox

Getting Started โ€ข Documentation โ€ข Example Apps โ€ข Issues

Build and test pub.dev package Apache 2.0 license Follow @ObjectBox_io

Flutter database for fast Dart object persistence ๐Ÿ’™

๐Ÿ™Œ Your opinion matters to us! Please fill in this 2-minute Anonymous Feedback Form.

ObjectBox Flutter database is a great option for storing data in your cross-platform apps. It uses minimal CPU, memory and battery, which makes it an ideal choice for mobile and IoT devices. It is made for efficient data access and is 10x faster than any alternative. See the performance benchmarks below. No need to learn SQL, as our NoSQL database uses pure Dart API that is easy to work with and can be integrated in minutes. Apart from that, we built a data synchronization solution that allows you to choose which objects to sync when and therefore keep your cloud costs low.

Features

๐Ÿ High performance - improving response rates and enabling real-time applications.
๐Ÿช‚ ACID compliant - Atomic, Consistent, Isolated, Durable.
๐Ÿ’ป Multiplatform - Android, iOS, macOS, Linux, Windows.
๐ŸŒฑ Scalable - grows with your app, handling millions of objects with ease.

๐Ÿ”— Relations - object links / relationships are built-in.
๐Ÿ’ Queries - filter data as needed, even across relations.
๐Ÿฆฎ Statically typed - compile time checks & optimizations.
๐Ÿ“ƒ Schema migration - change your model with confidence.

Oh, and there is one more thing... ๐Ÿ˜ฎ Data Sync - keeps data in sync offline or online, between devices and servers.

Getting Started (in your App)

To start using ObjectBox in your Flutter/Dart app, head over to

Getting Started with this Repository

Do you want to check out the ObjectBox code itself? E.g. see in action, run tests, or even contribute code? Great! Clone/check out this repository and run this to generate code and get you started quickly:

./tool/init.sh

Also, make sure to have a look at the contribution guidelines - we are looking forward to your contribution.

Flutter Database Performance Benchmarks

We tested across the four main database operations, CRUD (create, read, update, delete). Each test was run multiple times and executed manually outside of the measured time. Data preparation and evaluation were also done outside of the measured time.

Here are the benchmarks for ObjectBox vs sqflite vs Hive ๐Ÿ‘‡

You can run these yourself using our objectbox-dart-performance Flutter benchmark app.

Do you ๐Ÿ’™ ObjectBox?

We strive to bring joy to Flutter developers and appreciate all kind of feedback, both positive and negative. What do you love? What's amiss? Where do you struggle in everyday app development?

We're looking forward to receiving your comments and requests:

  • Add GitHub issues
  • Upvote issues you find important by hitting the ๐Ÿ‘/+1 reaction button
  • Fill in the feedback form to help us improve our products
  • Drop us a line on Twitter via @ObjectBox_io
  • โญ us, if you like what you see

Thank you! ๐Ÿ™

Keep in touch: For general news on ObjectBox, check our blog!

Packages

This repository holds all ObjectBox Dart/Flutter packages as separate directories:

There's also a separate repository benchmarking objectbox (and other databases) in Flutter: objectbox-dart-performance. And another one testing and comparing the performance of our FlatBuffers fork vs the upstream version: flatbuffers-benchmark.

Other languages/bindings

ObjectBox supports multiple platforms and languages:

License

Copyright 2019-2022 ObjectBox Ltd. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

The Flutter database for super-fast Dart object persistence

https://pub.dev/packages/objectbox

License:Apache License 2.0


Languages

Language:Dart 66.7%Language:C 23.1%Language:C++ 4.9%Language:CMake 3.1%Language:Shell 0.9%Language:Swift 0.4%Language:Ruby 0.4%Language:Java 0.2%Language:Objective-C 0.1%Language:Makefile 0.1%Language:Kotlin 0.0%