couchbase 0.1.0 copy "couchbase: ^0.1.0" to clipboard
couchbase: ^0.1.0 copied to clipboard

outdated

Couchbase Server SDK for Dart. Couchbase is a distributed, scalable, NewSQL, document-oriented database.

example/lib/main.dart

// ignore_for_file: avoid_print

import 'package:couchbase/couchbase.dart';

void main() async {
  final cluster = await Cluster.connect(
    'couchbase://localhost',
    ClusterOptions(
      username: 'admin',
      password: 'password',
    ),
  );

  final bucket = cluster.bucket('my-bucket');
  final collection = bucket.defaultCollection;

  await collection
      .insert('greeting-alice', {'message': 'Hello @name!', 'name': 'Alice'});

  final getResult = await collection.get('greeting-alice');
  print(getResult.content);

  await cluster.close();
}
4
likes
0
points
42
downloads

Publisher

unverified uploader

Weekly Downloads

Couchbase Server SDK for Dart. Couchbase is a distributed, scalable, NewSQL, document-oriented database.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, ffi, http, meta, path, solvent, tar

More

Packages that depend on couchbase