Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf1b656c

Browse files
committed
Add a reference to the related cratepg_named_args
1 parent270a29b commitf1b656c

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

‎README.md‎

Lines changed: 6 additions & 0 deletions
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‎

Lines changed: 6 additions & 0 deletions
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
pubuse fallible_iterator;

‎tokio-postgres/src/lib.rs‎

Lines changed: 6 additions & 0 deletions
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
pubusecrate::cancel_token::CancelToken;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp