1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Database executor implementations for sqlw.
//!
//! Provides async database connections with a unified interface.
//!
//! # Features
//!
//! - `sqlite` - Rusqlite support via `tokio-rusqlite`
//! - `turso` - Turso/libSQL support (default)
//! - `postgres` - PostgreSQL support via `bb8` connection pool with `tokio-postgres`
//! - `mysql` - MySQL support via `mysql_async`
//!
//! # Module Layout
//!
//! Each backend module is self-contained:
//! - `postgres` contains both `PostgresExecutor` and `PostgresRowRef`
//! - `mysql` contains both `MySqlExecutor` and `MySqlRowRef`
//! - `sqlite` contains both `SqliteExecutor` and `SqliteRowRef`
//! - `turso` contains both `TursoExecutor` and `TursoRowRef`
//!
//! # Example
//!
//! ```ignore
//! use sqlw::{QueryExecutor, query_qmark as query};
//! use sqlw_backend::turso::TursoExecutor;
//!
//! let executor = TursoExecutor::new(|| async {
//! turso::Builder::new_local("file.db").build().await?
//! .connect()
//! }).await?;
//!
//! let users: Vec<User> = executor.query_list(query).await?;
//! ```