mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
refactor(any): Remove lifetime parameter from AnyArguments (#3958)
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user