mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
62 lines
1.4 KiB
Rust
62 lines
1.4 KiB
Rust
//! Core of SQLx, the rust SQL toolkit.
|
|
//! Not intended to be used directly.
|
|
#![recursion_limit = "512"]
|
|
#![warn(future_incompatible, rust_2018_idioms)]
|
|
#![allow(clippy::needless_doctest_main, clippy::type_complexity)]
|
|
//
|
|
// Allows an API be documented as only available in some specific platforms.
|
|
// <https://doc.rust-lang.org/unstable-book/language-features/doc-cfg.html>
|
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
|
//
|
|
// When compiling with support for SQLite we must allow some unsafe code in order to
|
|
// interface with the inherently unsafe C module. This unsafe code is contained
|
|
// to the sqlite module.
|
|
#![cfg_attr(feature = "sqlite", deny(unsafe_code))]
|
|
#![cfg_attr(not(feature = "sqlite"), forbid(unsafe_code))]
|
|
|
|
#[cfg(feature = "bigdecimal")]
|
|
extern crate bigdecimal_ as bigdecimal;
|
|
|
|
#[macro_use]
|
|
pub mod error;
|
|
|
|
#[macro_use]
|
|
pub mod arguments;
|
|
|
|
#[macro_use]
|
|
pub mod pool;
|
|
|
|
pub mod connection;
|
|
|
|
#[macro_use]
|
|
pub mod transaction;
|
|
|
|
pub mod database;
|
|
pub mod decode;
|
|
pub mod describe;
|
|
pub mod encode;
|
|
pub mod executor;
|
|
mod ext;
|
|
pub mod from_row;
|
|
mod io;
|
|
mod net;
|
|
pub mod query;
|
|
pub mod query_as;
|
|
pub mod query_scalar;
|
|
pub mod row;
|
|
pub mod type_info;
|
|
pub mod types;
|
|
pub mod value;
|
|
|
|
#[cfg(feature = "postgres")]
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "postgres")))]
|
|
pub mod postgres;
|
|
|
|
#[cfg(feature = "sqlite")]
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "sqlite")))]
|
|
pub mod sqlite;
|
|
|
|
#[cfg(feature = "mysql")]
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "mysql")))]
|
|
pub mod mysql;
|