mod build;
mod filters;
#[cfg(any(feature = "mysql", feature = "postgres"))]
mod plan;
#[cfg(feature = "postgres")]
mod plan_pg;
#[cfg(any(feature = "mysql", feature = "postgres"))]
mod read;
#[cfg(all(test, feature = "mysql"))]
mod sql_param;
#[cfg(all(test, feature = "mysql"))]
mod sql_render;
mod validation;
#[cfg(any(feature = "mysql", feature = "postgres"))]
mod write;
#[cfg(all(test, feature = "mysql"))]
pub(crate) use sql_param::SqlParam;
use crate::table::{QueryParams, TableConfig};
use serde_json::Value;
use std::collections::HashSet;
use std::sync::Arc;
pub const MAX_TABLE_QUERY_PAGE_SIZE: usize = super::query_params::MAX_QUERY_PAGE_SIZE;
#[derive(Debug, Clone)]
pub struct TableQuery {
table_config: Arc<TableConfig>,
user_roles: Arc<[String]>,
user_roles_set: HashSet<String>,
query_params: QueryParams,
#[cfg_attr(not(any(feature = "mysql", feature = "postgres")), allow(dead_code))]
nulls_orders: std::collections::HashMap<String, bool>,
#[cfg_attr(not(feature = "postgres"), allow(dead_code))]
any_conditions: Vec<(String, Vec<Value>)>,
include_trashed: bool,
tenant_scope: Option<(String, Value)>,
#[cfg(any(feature = "mysql", feature = "postgres"))]
pool: Option<crate::database::AnyPool>,
#[cfg_attr(not(any(feature = "mysql", feature = "postgres")), allow(dead_code))]
pool_source: crate::datasource::DatasourceId,
#[cfg_attr(not(any(feature = "mysql", feature = "postgres")), allow(dead_code))]
require_sourced_tx: bool,
slow_threshold: Option<std::time::Duration>,
request_id: Option<crate::action::RequestId>,
regex_cache: crate::table::RegexCache,
}