Skip to main content

diesel/pg/returning/
mod.rs

1//! PostgreSQL-specific `RETURNING` clause helpers.
2//!
3//! This module exposes [`old()`], the wrapper used to refer to the
4//! pre-modification value of a column in a PostgreSQL `RETURNING` clause —
5//! the `RETURNING old.col` syntax introduced in PostgreSQL 18.
6
7// Naming: we suffix with `_impl` to avoid name conflicts with the `old` re-export below.
8mod old_impl;
9
10pub use self::old_impl::old;
11
12pub(crate) use self::old_impl::return_type_helpers_reexported;