drizzle 0.1.0+1 copy "drizzle: ^0.1.0+1" to clipboard
drizzle: ^0.1.0+1 copied to clipboard

A simple package to persist and query small dataset of data

example/lib/main.dart

import 'package:drizzle/drizzle.dart';

void main(List<String> args) async {
  final drizzle = Drizzle(
    dataStore: DrizzleFileDataStore(
      basePath: '.data',
    ),
  );

  await drizzle.load();

  if (args.isEmpty) {
    final values = drizzle.query('values', {});
    for (final value in values) {
      print(value);
    }
  } else if (args[0] == 'add') {
    final id = drizzle.add('values', {'value': args.last});

    print(id);
  }

  await drizzle.pendingOperations();
}
3
likes
160
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

A simple package to persist and query small dataset of data

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

path, uuid

More

Packages that depend on drizzle