keelson_mysql/replace.rs
1//! Mods for [`mysql::replace`](crate::replace()).
2//!
3//! ```
4//! use keelson_mysql as mysql;
5//! use keelson_mysql::{arg, replace};
6//!
7//! let q = mysql::replace((
8//! replace::into("users").columns(["id", "name"]),
9//! replace::values((arg(1i32), arg("ada"))),
10//! ));
11//! ```
12//!
13//! A deliberately short list. `REPLACE` deletes the conflicting row and inserts the
14//! new one, so `IGNORE`, `HIGH_PRIORITY`, the row alias and
15//! `ON DUPLICATE KEY UPDATE` are all absent from its production — and therefore
16//! from this module. `LOW_PRIORITY` and `DELAYED` are the only modifiers it takes.
17
18pub use crate::shared::{
19 delayed, from_item as into, low_priority, max_execution_time, optimizer_hint, qb_name,
20 resource_group, rows, set, set_col, set_var, values, values_from_query as query,
21};