Re-exports§
pub use model::meta::ViewParams;pub use model::meta::ViewSource;pub use model::schema::HnswIndexDef;pub use model::schema::VectorDistance;pub use model::schema::VectorIndexType;pub use query::Order;pub use auth::*;pub use connection::*;pub use crypto::*;pub use error::*;pub use graph::*;pub use repository::*;pub use serde_utils::id::*;pub use tx::*;
Modules§
- auth
- Authentication helpers for bootstrapping the embedded database.
- connection
- Database runtime setup and global handle access.
- crypto
- Encryption helpers and key-provider abstractions.
- error
- Library error types.
- graph
- Graph relation helpers built on top of SurrealDB relation tables.
- model
- Model metadata, schema registration, and relation metadata.
- prelude
- Common re-exports for application code.
- query
- Raw and builder-style query helpers.
- repository
- CRUD internals plus the model-facing
Crudtrait. - serde_
utils - Serde helpers for ids and SurrealDB-friendly encoding.
- tx
- Explicit transaction runner helpers.
Macros§
- impl_
hnsw_ index - Registers a SurrealDB HNSW vector index for a type.
- impl_
schema - Registers a schema DDL string for a type.
Structs§
- Auto
Fill - Opaque appdb-managed scalar used by
#[fill(...)]fields. - Foreign
Write Plan - One-shot overrides for
#[foreign]fields during a Store write. - Relation
Write - Prepared relation-table writes for one
#[relate(...)]field. - Sensitive
Value Of - Wrapper that stores any serde value through the approved secure-value seam.
Enums§
- Relation
Write Direction - Synchronization direction for one relation-backed field write.
Traits§
- Bridge
- Runtime seam for values persisted by
#[foreign]fields. - Foreign
Lookup Shape - Read-only lookup seam for
#[foreign]container shapes. - Foreign
Model - Runtime seam for explicit nested
#[foreign]persistence and hydration. - Foreign
Persistence - Runtime persistence context for foreign resolution/creation.
- Foreign
Shape - Recursive runtime seam for
#[foreign]container shapes. - Relate
Shape - Runtime seam for relation-backed field shapes.
- Sensitive
- Trait implemented by encrypted domain types generated by
#[derive(Sensitive)]. - Sensitive
Shape - Recursive runtime seam for supported
#[secure]shapes. - Sensitive
Value - Runtime/storage seam for enum-bearing leaves inside an approved secure container.
- Stored
Model - Runtime conversion seam between the caller-facing model and the stored representation.
- View
Shape - Recursive runtime seam for read-only View container shapes.
Functions§
- decode_
record_ link_ value - Rewrites string-form record links into the canonical RecordId serde contract.
- decode_
stored_ record_ links - Rewrites stored foreign payloads into the canonical RecordId serde contract.
- resolve_
foreign_ record_ id - Saves or resolves one foreign child model and returns its record id.
- resolve_
foreign_ record_ id_ with - Saves or resolves one foreign child model through the provided persistence context.
- rewrite_
foreign_ json_ value - Converts foreign JSON shapes like
{ id: ... }into raw record-id JSON values.