Skip to content

Commit

Permalink
Add a reference to the related crate pg_named_args
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolphfroger committed Mar 11, 2024
1 parent 270a29b commit f1b656c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ TLS support for postgres and tokio-postgres via native-tls.

TLS support for postgres and tokio-postgres via openssl.

## Related crates

[`pg_named_args`](https://crates.io/crates/pg_named_args) enables one to use
named arguments in queries. The provided macro converts the named arguments to
positional arguments at compile time.

# Running test suite

The test suite requires postgres to be running in the correct configuration. The easiest way to do this is with docker:
Expand Down
6 changes: 6 additions & 0 deletions postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@
//! | `with-uuid-1` | Enable support for the `uuid` crate. | [uuid](https://crates.io/crates/uuid) 1.0 | no |
//! | `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 |
//! | `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 |
//!
//! # Related crates
//!
//! [`pg_named_args`](https://crates.io/crates/pg_named_args) enables one to use named arguments
//! in queries. The provided macro converts the named arguments to positional arguments at compile
//! time.
#![warn(clippy::all, rust_2018_idioms, missing_docs)]

pub use fallible_iterator;
Expand Down
6 changes: 6 additions & 0 deletions tokio-postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@
//! | `with-uuid-1` | Enable support for the `uuid` crate. | [uuid](https://crates.io/crates/uuid) 1.0 | no |
//! | `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 |
//! | `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 |
//!
//! # Related crates
//!
//! [`pg_named_args`](https://crates.io/crates/pg_named_args) enables one to use named arguments
//! in queries. The provided macro converts the named arguments to positional arguments at compile
//! time.
#![warn(rust_2018_idioms, clippy::all, missing_docs)]

pub use crate::cancel_token::CancelToken;
Expand Down

0 comments on commit f1b656c

Please sign in to comment.