cozo_dart library
CozoDB embedded graph database for Dart and Flutter.
CozoDB is a transactional, relational-graph-vector database that uses Datalog for queries. This package provides a Dart wrapper around the Rust CozoDB engine via flutter_rust_bridge.
Classes
- CozoDatabase
- A CozoDB database instance.
- CozoGraph
- High-level graph operations built on CozoScript.
- CozoResult
- Represents the result of a CozoScript query.
- CozoTextSearch
- Full-text search (FTS) and locality-sensitive hashing (LSH) operations for CozoDB.
- CozoUtils
- Utility operations wrapping CozoDB fixed-point algorithms that are not strictly graph operations: sorting, CSV reading, and JSON reading.
- CozoVectorSearch
- HNSW vector index and nearest-neighbor search operations for CozoDB.
- FtsAlphaNumOnly
- Removes non-alphanumeric characters from tokens.
- FtsAsciiFolding
- Folds Unicode characters to ASCII equivalents (e.g., ñ → n, ü → u).
- FtsFilter
- A filter applied during FTS tokenization.
- FtsLowercase
- Converts all tokens to lowercase.
- FtsStemmer
- Applies language-specific stemming (e.g., "running" → "run").
- FtsStopwords
- Removes common stopwords for a language (e.g., "the", "is", "at").
Enums
- CozoEngine
- Storage engine options for CozoDB.
- FtsTokenizer
- Tokenizer strategy for full-text search indexing.
- VectorDistance
- Distance metric for HNSW vector search.
- VectorDType
- Vector data type for stored vectors.
Exceptions / Errors
- CozoDatabaseException
- Exception thrown when a database operation fails (open, close, backup, etc.).
- CozoException
- Base exception for CozoDB errors.
- CozoQueryException
- Exception thrown when a CozoScript query fails.