1#![warn(missing_docs)]
2#![doc = include_str!("readme.md")]
3
4#[cfg(any(feature = "turso", feature = "postgres", feature = "mysql"))]
5mod connection;
6#[cfg(any(feature = "turso", feature = "postgres", feature = "mysql"))]
7mod orm;
8mod schema;
9#[cfg(feature = "turso")]
10mod types;
11
12#[cfg(any(feature = "turso", feature = "postgres", feature = "mysql"))]
13pub use connection::{
14 DatabaseBackend, DatabaseConfig, DatabaseConnection, DatabaseError, DatabaseResult, DatabaseRow, DatabaseRows,
15 DatabaseStatement, FromDatabaseValue,
16};
17#[cfg(feature = "turso")]
18pub use connection::{DatabaseService, TursoConnection};
19#[cfg(feature = "mysql")]
20pub use connection::{MySqlConnection, MySqlDatabaseService};
21#[cfg(feature = "postgres")]
22pub use connection::{PostgresConnection, PostgresDatabaseService};
23#[cfg(feature = "turso")]
24pub use orm::DbRepository;
25#[cfg(feature = "mysql")]
26pub use orm::MySqlDbRepository;
27#[cfg(any(feature = "turso", feature = "postgres", feature = "mysql"))]
28pub use orm::{
29 BelongsTo, Condition, DeleteBuilder, Entity, FromRow, HasMany, InsertBuilder, Join, JoinType, ManyToMany, QueryBuilder,
30 Repository, SelectBuilder, ToRow, UpdateBuilder,
31};
32pub use schema::{ColumnDef, ColumnType, ForeignKeyDef, IndexDef, ReferentialAction, TableSchema, col};
33pub use wae_types::Value;