an5-adapters 0.1.0

Standalone database adapter runtime for AN5 ORM (Rust) — connection handling, dialect-aware CRUD, aggregates and vector search.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Shared building blocks for the AN5 Rust adapter.
//!
//! Mirrors the Go `an5adapters/base` package: dialect handling, adapter
//! metadata and WHERE / ORDER BY construction.

pub mod dialect;
pub mod metadata;
pub mod where_builder;

pub use dialect::{
    cosine_similarity, dot_product, euclidean_distance, vector_distance, Dialect,
};
pub use metadata::{
    add_table_override, get_fields_for_model, get_model_to_table, get_relations_for_model,
    resolve_table, set_adapter_metadata, AdapterMetadata, RelationDef,
};
pub use where_builder::{build_order_by, build_where, SqlArg, Where};