drizzle_core/
lib.rs

1pub mod conversions;
2pub mod error;
3pub mod expressions;
4pub mod helpers;
5pub mod params;
6pub mod prepared;
7pub mod schema;
8pub mod sql;
9pub mod traits;
10
11// Re-export key types and traits
12pub use conversions::ToSQL;
13pub use params::{OwnedParam, Param, ParamBind, Placeholder, PlaceholderStyle, placeholders};
14pub use schema::{OrderBy, SQLSchemaType};
15pub use sql::{OwnedSQL, OwnedSQLChunk, SQL, SQLChunk};
16pub use traits::*;
17
18/// Creates an aliased table that can be used in joins and queries
19/// Usage: alias!(User, "u") creates an alias of the User table with alias "u"
20#[macro_export]
21macro_rules! alias {
22    ($table:ty, $alias_name:literal) => {
23        $crate::Alias::<$table>::new($alias_name)
24    };
25}