mod definition;
mod field_config;
mod field_type;
mod query_params;
mod record;
mod relation_loader;
mod relation_options;
mod schema_validation;
mod table_config;
mod table_query;
mod tables;
mod validator;
#[cfg(test)]
mod __tests__;
#[cfg(feature = "mysql")]
pub(crate) use definition::has_balanced_mysql_check_expression;
#[cfg(feature = "postgres")]
pub(crate) use definition::has_balanced_pg_check_expression;
#[cfg(any(feature = "mysql", feature = "postgres"))]
pub use definition::TableHandle;
pub use definition::{col, ColumnName, Field, FieldMetadata, Order, Table, TableDefinition};
pub(crate) use field_config::FieldConfig;
pub use field_config::RelationType;
pub use field_type::{
FieldType, MAX_VARCHAR_LENGTH, MYSQL_MAX_VARCHAR_LENGTH, POSTGRES_MAX_VARCHAR_LENGTH,
};
pub use query_params::{
PaginatedResult, QueryParams, TableQueryPlan, WhereCondition, DEFAULT_QUERY_PAGE_SIZE,
MAX_QUERY_PAGE_SIZE,
};
pub use record::Record;
#[cfg(feature = "postgres")]
pub use record::{register_pg_type_decoder, PgTypeDecoder, PgValue};
#[cfg(any(feature = "mysql", feature = "postgres"))]
pub use relation_loader::DatabaseRelationExecutor;
pub use relation_loader::{
RelationBatch, RelationBatchExecutor, RelationData, RelationLoader, RelationSpec,
};
pub use relation_options::{RelationOption, RelationOptionsRequest, RelationOptionsResponse};
pub use schema_validation::{SchemaColumn, SchemaIssue, SchemaIssueKind, SchemaValidationReport};
pub use table_config::SortOrder;
pub(crate) use table_config::TableConfig;
#[cfg(any(feature = "mysql", feature = "postgres"))]
pub(crate) use table_config::{CheckConfig, ForeignKeyConfig};
pub use table_query::{TableQuery, MAX_TABLE_QUERY_PAGE_SIZE};
pub use tables::{
TableListResult, TableTreeNode, Tables, DEFAULT_TREE_MAX_DEPTH, DEFAULT_TREE_MAX_NODES,
};
pub use validator::{RegexCache, Validator, ValidatorFn};