-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
… deleteMany and updateMany
- Loading branch information
There are no files selected for viewing
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 GitHub Actions / test (postgres16, false, postgres, 16)
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / test
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / React Native / Android build for commit bf7023ba7f8b4d70e2fdc1b5b2a105b5e408e302
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / run
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / query-engine on ubuntu-latest
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / query-engine-node-api on ubuntu-latest
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / clippy linting
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / sqlite / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / sqlite / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / sqlite / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / sqlite / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / sqlite / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / sqlite / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / sqlite / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / json join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / graphql join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.2 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.2 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.2 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / graphql join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / graphql join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 5 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / json join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / json join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2017 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.2 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / graphql join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / json join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.4 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.4 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.4 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / json join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / graphql join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 5 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 5 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / graphql join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / graphql join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.4 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.4 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 5 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2017 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / graphql join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / graphql join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / json join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 5 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.2 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / graphql join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.2 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 5 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2017 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 5 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / json join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.4 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / json join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / json join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql mariadb / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.2 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2017 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / graphql join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql mariadb / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2019 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2019 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2019 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 5 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2019 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql mariadb / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2019 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / json join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / graphql join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2022 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql mariadb / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2019 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql mariadb / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / json join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2022 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.4 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2022 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2017 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / json join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2017 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / sqlite / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / graphql join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / json join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / graphql join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2022 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / graphql join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / json join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / json join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / json join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / json join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2017 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / json join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / json join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / graphql join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / json join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / graphql join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / graphql join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / graphql join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / graphql join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / graphql join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / json join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / graphql join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2022 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / graphql join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / graphql join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / graphql join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql mariadb / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / json join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / json join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / graphql join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / json join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / graphql join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / json join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / json join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / json join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2022 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql mariadb / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / graphql join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / json join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / graphql join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / graphql join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql mariadb / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / json join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / graphql join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.2 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 10 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / json join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / json join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / json join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / json join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / graphql join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / json join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2022 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / json join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / graphql join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / json join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / json join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mongodb 4.4 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / graphql join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / graphql join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.2 / json join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / json join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / json join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.6 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / graphql join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / graphql join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.6 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.6 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / json join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.6 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / json join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 22.1 / json join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / graphql join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / json join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.7 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / graphql join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.7 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / graphql join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.6 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / json join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.6 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / cockroachdb 23.1 / json join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.7 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.7 / json query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2017 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / json join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.6 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 11 / graphql join 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.7 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.7 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / graphql join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2022 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / graphql join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2019 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 12 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 14 / graphql join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.6 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 16 / json join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 9 / graphql join 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mssql 2019 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / graphql join 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / graphql query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / json query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.7 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 13 / json query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / graphql query 4/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / postgres 15 / graphql query 3/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / graphql query 2/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / graphql join 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 5.7 / json query 1/4
Check failure on line 10 in query-engine/connectors/sql-query-connector/src/limit.rs GitHub Actions / mysql 8 / json query 1/4
|
||
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 | ||
} | ||
} |