arango 0.1.3 copy "arango: ^0.1.3" to clipboard
arango: ^0.1.3 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
40
points
77
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio

More

Packages that depend on arango