cozo_dart 1.0.1
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
:ensureDDL failing on existing relations — replaced:ensurewith:createfor all schema creation statements.:ensurein CozoDB v0.7 is a transactional row assertion, not idempotent DDL, causingrelation_not_founderrors on first run andstored_relation_conflicton subsequent runs. - added
_tryQueryhelper for idempotent schema creation — catchesstored_relation_conflictandindex_already_existserrors gracefully, allowing safe re-initialization without crashes. - fixed string escaping in CozoScript queries — added proper
_escapeCozoString()incozo_graph.dartandcozo_vector_search.dartthat escapes backslashes, double quotes, newlines, carriage returns, and tabs. previously, only double quotes were escaped, causingpest::parseerrors when content contained multi-line text or special characters. - updated example app — migrated all 7
:ensurecalls to:createwith_tryQuerywrapper indb_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.