Skip to main content

Crate stellardb

Crate stellardb 

Source

Re-exports§

pub use document::Document;
pub use document::Value;
pub use edge::Edge;
pub use embedded::EmbeddedDatabase;
pub use embedded::EmbeddedError;
pub use embedded::EmbeddedQueryOptions;
pub use embedded::EmbeddedTransaction;
pub use query::execute::Row;
pub use schema::CollectionSchema;
pub use schema::DefaultValue;
pub use schema::DistanceMetric;
pub use schema::FieldDef;
pub use schema::FieldType;
pub use schema::HnswParams;
pub use schema::IndexDef;
pub use schema::IndexType;
pub use schema::SchemaMode;
pub use schema::SchemaRegistry;
pub use schema::parse_schema_file;
pub use storage::Database;
pub use storage::IndexBuildConfig;

Modules§

auth
document
edge
Edge types and structures for graph relationships.
embedded
error
metrics
namespace
Namespace - manages multiple databases within a data directory
query
schema
server
session
storage
Storage module with modular architecture
transaction
util
Utility modules for StellarDB.
version

Macros§

define_functions
Macro to define functions and constants in a declarative way.
run_sql
Helper macro for running single SQL statements in tests. Usage: run_sql!(storage, “SELECT * FROM users”) storage should be an Arc<Database> — the macro calls .clone() on it.
try_run_sql
Helper for tests that need Result instead of panic. storage should be an Arc<Database> — the macro calls .clone() on it.

Functions§

query_json
Helper for tests - runs query and converts result to JSON