cbl 4.0.0-dev.1 copy "cbl: ^4.0.0-dev.1" to clipboard
cbl: ^4.0.0-dev.1 copied to clipboard

An offline-first NoSQL document database with SQL++ queries, vector search, full-text search, live queries, encryption, bi-directional and peer-to-peer data sync.

example/lib/main.dart

// ignore_for_file: avoid_print

import 'package:cbl/cbl.dart';

Future<void> main() async {
  // Couchbase Lite needs to be initialized before it can be used.
  await CouchbaseLite.init();

  final db = await Database.openAsync('chat-app');
  final messages = await db.createCollection('messages');

  final doc = MutableDocument({
    'type': 'message',
    'body': 'Heyo',
    'from': 'Alice',
  });

  await messages.saveDocument(doc);

  await db.close();
}
79
likes
150
points
856
downloads

Documentation

Documentation
API reference

Publisher

verified publishercbl-dart.dev

Weekly Downloads

An offline-first NoSQL document database with SQL++ queries, vector search, full-text search, live queries, encryption, bi-directional and peer-to-peer data sync.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#database #sql #sync #vector-search #full-text-search

License

Apache-2.0 (license)

Dependencies

archive, characters, code_assets, collection, ffi, hooks, http, meta, native_toolchain_c, path, stream_channel, synchronized

More

Packages that depend on cbl