chore: update documentation

This commit is contained in:
Lucas Nogueira committed 2026-09-22 11:30:47 -03:00
1 parent d869c162a7
commit a87a3c7d44
104 files changed
+4875 -222

No files matched your search

+10
View File
@@ -22,13 +22,23 @@ use sqlx::Sqlite;
use crate::LastInsertId;
/// A connection pool for one of the supported database drivers.
///
/// The variant is picked from the scheme of the connection string
/// (`sqlite:`, `mysql:` or `postgres:`) and only the variants whose Cargo
/// feature is enabled exist.
pub enum DbPool {
/// A SQLite connection pool. Only available with the `sqlite` Cargo feature.
#[cfg(feature = "sqlite")]
Sqlite(Pool<Sqlite>),
/// A MySQL connection pool. Only available with the `mysql` Cargo feature.
#[cfg(feature = "mysql")]
MySql(Pool<MySql>),
/// A PostgreSQL connection pool. Only available with the `postgres` Cargo feature.
#[cfg(feature = "postgres")]
Postgres(Pool<Postgres>),
/// Placeholder used when none of the `sqlite`, `mysql` and `postgres` Cargo
/// features is enabled. Connecting always fails and every other operation is a no-op.
#[cfg(not(any(feature = "sqlite", feature = "mysql", feature = "postgres")))]
None,
}