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
//! # `vld_data::sqlx08` — SQLx 0.8 integration for `vld`
//!
//! Validate values against a [`vld`] schema before writing them with SQLx
//! ([`validate_insert`], [`Validated`]) or after loading them
//! ([`validate_row`], [`validate_rows`]), and bind validated column wrappers
//! ([`VldText`], [`VldInt`], [`VldFloat`], [`VldBool`]) that implement
//! `sqlx::Type`, `Encode` and `Decode`.
//!
//! Feature `sqlx-0_8` plus the backends you use: `sqlite`, `postgres`,
//! `mysql`. `vld_data::sqlx09` is the same module for SQLx 0.9
//! (feature `sqlx-0_9`); both can be enabled together.
//!
//! ```
//! use vld_data::sqlx08::prelude::*;
//! ```
//!
//! Decoding does not re-validate (data from the database is trusted); call
//! [`validate_row`] to re-check loaded rows.
//!
//! Guide: <https://s00d.github.io/vld/integrations/database/sqlx>
use sqlx08 as sqlx;
pub use vld;
// One implementation, compiled once per SQLx major (ARCHITECTURE.md).
pub use *;
/// SQLx 0.8 glue.