Skip to main content

Crate sql_orm_core

Crate sql_orm_core 

Source
Expand description

Core contracts and shared types for the ORM.

Structs§

ColumnMetadata
Per-column metadata generated from entity definitions.
ColumnValue
Column/value pair produced by insert and update models.
CrateIdentity
Minimal crate identity metadata used while the rest of the model is defined.
EntityColumn
Static column symbol generated for entities and consumed later by the query builder.
EntityMetadata
Static metadata describing an entity.
EntityPolicyMetadata
Static metadata exposed by a reusable entity policy.
ForeignKeyMetadata
Foreign key metadata attached to an entity.
IdentityMetadata
Metadata for SQL Server identity columns.
IndexColumnMetadata
Columns participating in an index and their sort direction.
IndexMetadata
Index metadata attached to an entity.
NavigationMetadata
Navigation property metadata attached to an entity.
PrimaryKeyMetadata
Primary key metadata for an entity.

Enums§

NavigationKind
Relationship direction represented by a navigation property.
OrmError
Common error type placeholder for the workspace foundations.
ReferentialAction
Delete/update behavior for foreign keys.
SqlServerType
SQL Server types supported by the metadata layer.
SqlValue
Neutral SQL value representation shared across query compilation and execution layers.

Constants§

CRATE_IDENTITY

Traits§

Changeset
Stable contract for extracting changed values for updates.
Entity
Stable contract implemented by persisted entities.
EntityPolicy
Stable contract for reusable code-first policies that contribute normal columns.
FromRow
Stable contract for mapping a SQL row into a Rust type.
Insertable
Stable contract for extracting persisted values for inserts.
Row
Row abstraction used by the core mapping contracts without depending on Tiberius.
SqlTypeMapping
Base Rust <-> SQL Server mapping contract used by row readers and persistence models.

Functions§

column_name_exists