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

outdated

Code generator for Couchbase Lite, which is an embedded, NoSQL JSON Document Style database.

Version License CI codecov

Couchbase Lite is an embedded, NoSQL database:

  • Multi-Platform - Android, iOS, macOS, Windows, Linux
  • Standalone Dart and Flutter - No manual setup required, just add the package.
  • Fast and Compact - Uses efficient persisted data structures.

It is fully featured:

  • JSON Style Documents - No explicit schema and supports deep nesting.
  • Expressive Queries - N1QL (SQL for JSON), QueryBuilder, Full-Text Search
  • Observable - Get notified of changes in database, queries and data sync.
  • Data Sync - Pull and push data from/to server with full control over synced data.

❤️ If you find this package useful, please ⭐ us on pub.dev and GitHub. 🙏

🐛 & ✨ Did you find a bug or have a feature request? Please open a GitHub issue.

👋 Do you you have a question or feedback? Let us know in a GitHub discussion.


What are all these packages for?

Couchbase Lite can be used with standalone Dart or with Flutter apps and comes in two editions: Community and Enterprise.

Regardless of the app platform and edition of Couchbase Lite you use, you always need the cbl package. All of the APIs of Couchbase Lite live in this package.

What other packages you need depends on the app platform and the edition of Couchbase Lite you use.

Package Required when you want to: Pub Likes Points Popularity
cbl use Couchbase Lite.
cbl_dart use the Community or Enterprise Edition in a standalone Dart app or in Flutter unit tests.
cbl_flutter use Couchbase Lite in a Flutter app.
cbl_flutter_ce use the Community Edition in a Flutter app.
cbl_flutter_ee use the Enterprise Edition in a Flutter app.
cbl_sentry integrate Couchbase Lite with Sentry in a Dart or Flutter app.
cbl_generator generated Dart code to access data trough a typed data model.

🔌 Getting Started #

  1. After setting up your app for use with cbl, add cbl_generator and build_runner as development dependencies:

    dev_dependencies:
      cbl_generator: ...
      build_runner: ...
    
  2. Annotate Dart code with typed data annotations.

  3. Run the build runner to invoke the generator:

    dart run build_runner build
    # or
    flutter run build_runner build
    

💡 Where to go next #

  • Check out the example app in the Example tab.
  • Look at the usage examples for cbl.

⚖️ Disclaimer #

⚠️ This is not an official Couchbase product.

2
likes
0
pub points
41%
popularity

Publisher

verified publishercbl-dart.dev

Code generator for Couchbase Lite, which is an embedded, NoSQL JSON Document Style database.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, build_config, cbl, collection, meta, source_gen, source_helper

More

Packages that depend on cbl_generator