Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Derive clone for postgresql arguments
Browse files Browse the repository at this point in the history
remysaissy committed Jan 16, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f6d2fa3 commit 59249c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlx-postgres/src/arguments.rs
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ use sqlx_core::error::BoxDynError;
// that has a patch, we then apply the patch which should write to &mut Vec<u8>,
// backtrack and update the prefixed-len, then write until the next patch offset

#[derive(Default)]
#[derive(Default, Debug, Clone)]
pub struct PgArgumentBuffer {
buffer: Vec<u8>,

@@ -59,7 +59,7 @@ struct Patch {
}

/// Implementation of [`Arguments`] for PostgreSQL.
#[derive(Default)]
#[derive(Default, Debug, Clone)]
pub struct PgArguments {
// Types of each bind parameter
pub(crate) types: Vec<PgTypeInfo>,

0 comments on commit 59249c6

Please sign in to comment.