arango 0.1.2 copy "arango: ^0.1.2" to clipboard
arango: ^0.1.2 copied to clipboard

outdated

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
pub points
0%
popularity

Publisher

unverified uploader

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