Skip to content

Commit f1b656c

Browse files
committed
Add a reference to the related crate pg_named_args
1 parent 270a29b commit f1b656c

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ TLS support for postgres and tokio-postgres via native-tls.
3232

3333
TLS support for postgres and tokio-postgres via openssl.
3434

35+
## Related crates
36+
37+
[`pg_named_args`](https://crates.io/crates/pg_named_args) enables one to use
38+
named arguments in queries. The provided macro converts the named arguments to
39+
positional arguments at compile time.
40+
3541
# Running test suite
3642

3743
The test suite requires postgres to be running in the correct configuration. The easiest way to do this is with docker:

postgres/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
//! | `with-uuid-1` | Enable support for the `uuid` crate. | [uuid](https://crates.io/crates/uuid) 1.0 | no |
6565
//! | `with-time-0_2` | Enable support for the 0.2 version of the `time` crate. | [time](https://crates.io/crates/time/0.2.0) 0.2 | no |
6666
//! | `with-time-0_3` | Enable support for the 0.3 version of the `time` crate. | [time](https://crates.io/crates/time/0.3.0) 0.3 | no |
67+
//!
68+
//! # Related crates
69+
//!
70+
//! [`pg_named_args`](https://crates.io/crates/pg_named_args) enables one to use named arguments
71+
//! in queries. The provided macro converts the named arguments to positional arguments at compile
72+
//! time.
6773
#![warn(clippy::all, rust_2018_idioms, missing_docs)]
6874

6975
pub use fallible_iterator;

tokio-postgres/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@
116116
//! | `with-uuid-1` | Enable support for the `uuid` crate. | [uuid](https://crates.io/crates/uuid) 1.0 | no |
117117
//! | `with-time-0_2` | Enable support for the 0.2 version of the `time` crate. | [time](https://crates.io/crates/time/0.2.0) 0.2 | no |
118118
//! | `with-time-0_3` | Enable support for the 0.3 version of the `time` crate. | [time](https://crates.io/crates/time/0.3.0) 0.3 | no |
119+
//!
120+
//! # Related crates
121+
//!
122+
//! [`pg_named_args`](https://crates.io/crates/pg_named_args) enables one to use named arguments
123+
//! in queries. The provided macro converts the named arguments to positional arguments at compile
124+
//! time.
119125
#![warn(rust_2018_idioms, clippy::all, missing_docs)]
120126

121127
pub use crate::cancel_token::CancelToken;

0 commit comments

Comments
 (0)