cozo_dart 1.0.1 copy "cozo_dart: ^1.0.1" to clipboard
cozo_dart: ^1.0.1 copied to clipboard

CozoDB embedded graph database for Dart/Flutter. Datalog queries, 15+ graph algorithms, HNSW vector search, full-text search, SQLite persistent storage, cross-platform.

1.0.1 #

bug fixes #

  • fixed :ensure DDL failing on existing relations — replaced :ensure with :create for all schema creation statements. :ensure in CozoDB v0.7 is a transactional row assertion, not idempotent DDL, causing relation_not_found errors on first run and stored_relation_conflict on subsequent runs.
  • added _tryQuery helper for idempotent schema creation — catches stored_relation_conflict and index_already_exists errors gracefully, allowing safe re-initialization without crashes.
  • fixed string escaping in CozoScript queries — added proper _escapeCozoString() in cozo_graph.dart and cozo_vector_search.dart that escapes backslashes, double quotes, newlines, carriage returns, and tabs. previously, only double quotes were escaped, causing pest::parse errors when content contained multi-line text or special characters.
  • updated example app — migrated all 7 :ensure calls to :create with _tryQuery wrapper in db_service.dart.

internal #

  • schema creation is now fully idempotent — safe to call on every app startup without error.

1.0.0 #

  • initial release.
  • CozoDB bindings for Flutter via flutter_rust_bridge.
  • CozoDatabase — open SQLite or in-memory databases.
  • CozoGraph — graph algorithms (shortest path, PageRank, community detection, betweenness centrality, closeness centrality, label propagation).
  • CozoVectorSearch — HNSW vector index creation and k-NN search.
  • CozoTextSearch — full-text search index creation and querying.
  • platform support: Android, iOS, macOS, Linux, Windows.
0
likes
160
points
57
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

CozoDB embedded graph database for Dart/Flutter. Datalog queries, 15+ graph algorithms, HNSW vector search, full-text search, SQLite persistent storage, cross-platform.

Repository (GitHub)
View/report issues

Topics

#database #graph #vector-search #ai #embedded-database

License

MPL-2.0 (license)

Dependencies

flutter, flutter_rust_bridge, plugin_platform_interface

More

Packages that depend on cozo_dart

Packages that implement cozo_dart