Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soulman-is-good/dart-database

Pure dart written database
https://github.com/soulman-is-good/dart-database

dart dartlang database orm

Last synced: about 2 months ago
JSON representation

Pure dart written database

Awesome Lists containing this project

README

        

# Dart database

Embeded database built in on Dart.

**This package is still under development and will heavily change. Use on your own risk**

### How to use?

All operations are syncronous and reflects the status at disk

```dart
import 'package:dart_database/dart_database.dart';

class Item extends Entity {}

void main() {
bootstrap(
dbFolder: Platform.script.resolve('./db').toFilePath(),
);
Collection items = new Collection(
builder: () => new Item(),
);
Item item = new Item();

item['id'] = 1;
item['title'] = 'New item';
items.add(item);
}

```