Skip to content

Commit

Permalink
refactor: extract subquery creation to avoid code duplication between…
Browse files Browse the repository at this point in the history
… deleteMany and updateMany
  • Loading branch information
FGoessler committed Jan 9, 2025
1 parent d1f8fae commit ee23587
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::query_builder::write::{build_update_and_set_query, chunk_update_with_
use crate::row::ToSqlRow;
use crate::{Context, QueryExt, Queryable};

use crate::limit::wrap_with_limit_subquery_if_needed;
use connector_interface::*;
use itertools::Itertools;
use quaint::ast::*;
Expand Down Expand Up @@ -107,30 +108,14 @@ pub(super) async fn update_many_from_filter(
ctx: &Context<'_>,
) -> crate::Result<Query<'static>> {
let update = build_update_and_set_query(model, args, None, ctx);
let filter_condition = FilterBuilder::without_top_level_joins().visit_filter(record_filter.filter, ctx);

let condition = if let Some(limit) = limit {
let columns = model
.primary_identifier()
.as_scalar_fields()
.expect("primary identifier must contain scalar fields")
.into_iter()
.map(|f| f.as_column(ctx))
.collect::<Vec<_>>();

ConditionTree::from(
Row::from(columns.clone()).in_selection(
Select::from_table(model.as_table(ctx))
.columns(columns)
.so_that(filter_condition)
.limit(limit as usize),
),
)
} else {
filter_condition
};

let update = update.so_that(condition);
let filter_condition = wrap_with_limit_subquery_if_needed(
model,
FilterBuilder::without_top_level_joins().visit_filter(record_filter.filter, ctx),
limit,
ctx,
);

let update = update.so_that(filter_condition);
if let Some(selected_fields) = selected_fields {
Ok(update
.returning(selected_fields.as_columns(ctx).map(|c| c.set_is_selected(true)))
Expand Down
1 change: 1 addition & 0 deletions query-engine/connectors/sql-query-connector/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ mod database;
mod error;
mod filter;
mod join_utils;
mod limit;
mod model_extensions;
mod nested_aggregations;
mod ordering;
Expand Down
31 changes: 31 additions & 0 deletions query-engine/connectors/sql-query-connector/src/limit.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
use crate::{model_extensions::*, Context};
use quaint::ast::*;
use query_structure::*;

pub(crate) fn wrap_with_limit_subquery_if_needed(
model: &Model,
filter_condition: ConditionTree,
limit: Option<i64>,
ctx: &Context,
) -> ConditionTree {

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / test (postgres16, false, postgres, 16)

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / test

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / React Native / Android build for commit bf7023ba7f8b4d70e2fdc1b5b2a105b5e408e302

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / run

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / query-engine on ubuntu-latest

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / query-engine-node-api on ubuntu-latest

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / clippy linting

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / sqlite / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / sqlite / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / sqlite / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / sqlite / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / sqlite / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / sqlite / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / sqlite / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / sqlite / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / json query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql join 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql join 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql join 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql query 4/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql query 3/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql query 2/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql join 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json query 1/4

missing lifetime specifier

Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql join 3/4

missing lifetime specifier
if let Some(limit) = limit {
let columns = model
.primary_identifier()
.as_scalar_fields()
.expect("primary identifier must contain scalar fields")
.into_iter()
.map(|f| f.as_column(ctx))
.collect::<Vec<_>>();

ConditionTree::from(
Row::from(columns.clone()).in_selection(
Select::from_table(model.as_table(ctx))
.columns(columns)
.so_that(filter_condition)
.limit(limit as usize),
),
)
} else {
filter_condition
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use crate::limit::wrap_with_limit_subquery_if_needed;
use crate::{model_extensions::*, sql_trace::SqlTraceComment, Context};
use connector_interface::{DatasourceFieldName, ScalarWriteOperation, WriteArgs};
use quaint::ast::*;
Expand Down Expand Up @@ -229,29 +230,10 @@ pub(crate) fn delete_many_from_filter(
limit: Option<i64>,
ctx: &Context<'_>,
) -> Query<'static> {
let condition = if let Some(limit) = limit {
let columns = model
.primary_identifier()
.as_scalar_fields()
.expect("primary identifier must contain scalar fields")
.into_iter()
.map(|f| f.as_column(ctx))
.collect::<Vec<_>>();

ConditionTree::from(
Row::from(columns.clone()).in_selection(
Select::from_table(model.as_table(ctx))
.columns(columns)
.so_that(filter_condition)
.limit(limit as usize),
),
)
} else {
filter_condition
};
let filter_condition = wrap_with_limit_subquery_if_needed(model, filter_condition, limit, ctx);

Delete::from_table(model.as_table(ctx))
.so_that(condition)
.so_that(filter_condition)
.add_traceparent(ctx.traceparent)
.into()
}
Expand Down

0 comments on commit ee23587

Please sign in to comment.