#![doc(hidden)]
pub mod auto;
pub mod newtype;
pub mod storage;
pub use crate::schema::inventory;
pub use crate::{
Db, Error, Executor, Result, Statement,
schema::create_meta::{assert_create_fields, const_contains},
schema::{
Auto, BelongsTo, CreateField, CreateMeta, Defer, Deferred, DiscoverItem, Embed, Field,
HasMany, HasOne, Load, Model, Register, Relation, Scope, ValidateCreate,
build_deferred_load, generate_unique_id,
},
stmt::CreateMany,
stmt::{self, Assign, IntoExpr, IntoInsert, IntoStatement, List, Path},
update_target::UpdateTarget,
};
#[cfg(feature = "serde")]
pub use serde_json;
pub use std::{convert::Into, default::Default, option::Option};
pub use toasty_core as core;
pub fn scope_fields<S: Scope>(_scope: &S) -> S::Path<S::Item> {
S::new_path_root()
}
pub fn into_untyped_expr<T, V: IntoExpr<T>>(value: V) -> core::stmt::Expr {
let expr: stmt::Expr<T> = value.into_expr();
expr.into()
}