arango 1.0.0-pre copy "arango: ^1.0.0-pre" to clipboard
arango: ^1.0.0-pre copied to clipboard

Dart driver for ArangoDB the native multi-model nosql database.

example/arango_example.dart

import 'package:arango/arango.dart';

void main() async {
  final db = ArangoDatabase('http://localhost:8529');
  db.useBasicAuth('root', '123123');

  await db.collection('todos').ensureExists();
  await db.collection('todos').ensureTTLIndex(['expiresAt']);
  await db.collection('todos').ensureFulltextIndex(['content']);

  await db.collection('todos').save({'content': 'Go shopping'});
  await db.collection('todos').save({'content': 'Go home'});

  final todos = await db
      .query()
      .line('FOR todo IN todos')
      .line('RETURN todo.content')
      .toList();

  print('todos: $todos');
}
4
likes
120
pub points
0%
popularity

Publisher

unverified uploader

Dart driver for ArangoDB the native multi-model nosql database.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dio

More

Packages that depend on arango