refactor(any): Remove lifetime parameter from AnyArguments (#3958)

Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
This commit is contained in:
iamjpotts
2025-09-12 19:11:39 -04:00
committed by GitHub
parent 1f4b5f28f3
commit 54a0492ee2
13 changed files with 88 additions and 114 deletions

View File

@@ -80,12 +80,12 @@ impl AnyConnectionBackend for SqliteConnection {
Ok(self)
}
fn fetch_many<'q>(
&'q mut self,
fn fetch_many(
&mut self,
query: SqlStr,
persistent: bool,
arguments: Option<AnyArguments<'q>>,
) -> BoxStream<'q, sqlx_core::Result<Either<AnyQueryResult, AnyRow>>> {
arguments: Option<AnyArguments>,
) -> BoxStream<'_, sqlx_core::Result<Either<AnyQueryResult, AnyRow>>> {
let persistent = persistent && arguments.is_some();
let args = arguments.map(map_arguments);
@@ -103,12 +103,12 @@ impl AnyConnectionBackend for SqliteConnection {
)
}
fn fetch_optional<'q>(
&'q mut self,
fn fetch_optional(
&mut self,
query: SqlStr,
persistent: bool,
arguments: Option<AnyArguments<'q>>,
) -> BoxFuture<'q, sqlx_core::Result<Option<AnyRow>>> {
arguments: Option<AnyArguments>,
) -> BoxFuture<'_, sqlx_core::Result<Option<AnyRow>>> {
let persistent = persistent && arguments.is_some();
let args = arguments.map(map_arguments);
@@ -206,7 +206,7 @@ impl<'a> TryFrom<&'a AnyConnectOptions> for SqliteConnectOptions {
}
// Infallible alternative to AnyArguments::convert_into()
fn map_arguments(args: AnyArguments<'_>) -> SqliteArguments {
fn map_arguments(args: AnyArguments) -> SqliteArguments {
let values = args
.values
.0