mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-02 22:06:50 +02:00
chore: update documentation
This commit is contained in:
104 files changed
+4875
-222
No files matched your search
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user