mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-23 11:36:13 +02:00
5fd597ddaf
* added banners and icons * fix: formatting
31 lines
1.1 KiB
Rust
31 lines
1.1 KiB
Rust
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
//! [](https://github.com/tauri-apps/plugins-workspace/tree/v2/plugins/sql)
|
|
//!
|
|
//! Interface with SQL databases through [sqlx](https://github.com/launchbadge/sqlx). It supports the `sqlite`, `mysql` and `postgres` drivers, enabled by a Cargo feature.
|
|
|
|
#![doc(
|
|
html_logo_url = "https://github.com/tauri-apps/tauri/raw/dev/app-icon.png",
|
|
html_favicon_url = "https://github.com/tauri-apps/tauri/raw/dev/app-icon.png"
|
|
)]
|
|
|
|
#[cfg(any(
|
|
all(feature = "sqlite", feature = "mysql"),
|
|
all(feature = "sqlite", feature = "postgres"),
|
|
all(feature = "mysql", feature = "postgres")
|
|
))]
|
|
compile_error!(
|
|
"Only one database driver can be enabled. Set the feature flag for the driver of your choice."
|
|
);
|
|
|
|
#[cfg(not(any(feature = "sqlite", feature = "mysql", feature = "postgres")))]
|
|
compile_error!(
|
|
"Database driver not defined. Please set the feature flag for the driver of your choice."
|
|
);
|
|
|
|
mod decode;
|
|
mod plugin;
|
|
pub use plugin::*;
|