no-mistakes-postgres-engine 0.109.131

PostgreSQL embedded SQL extraction, schema catalog, and replay-safety analysis for no-mistakes
Documentation
//! PostgreSQL embedded SQL extraction, schema catalog, and replay-safety engine.

#[doc(hidden)]
pub const TEST_INSTRUMENTATION_ENABLED: bool = cfg!(feature = "test-instrumentation");

pub mod catalog;
pub mod embedded;
pub mod embedded_dml;
pub mod executor_detachment;
#[doc(hidden)]
pub mod fx {
    pub use no_mistakes_ts_facts::fx::*;
}
pub mod hooks;
pub mod lock_inventory;
pub mod on_conflict;
pub mod options;
pub mod statements;
#[cfg(test)]
pub(crate) mod test_support;
pub mod types;
pub mod verdict;
pub mod view_bounds;

pub use catalog::{
    canonical_key, catalog_finding, expression_matches, order_prefix_matches,
    parse_postgres_expression, require_catalog_path, AllowEntry, AllowList, CanonicalIndex,
    CanonicalOrderKey, CatalogCheck, CatalogColumn, CatalogCoverage, CatalogEnum,
    CatalogForeignKey, CatalogFunction, CatalogIndexInfo, CatalogIndexKey, CatalogObjectRef,
    CatalogRowSecurity, CatalogTable, CatalogTrigger, CatalogUnique, CatalogView, GeneratedKind,
    PartitionKey, PartitionKeyElement, PartitionStrategy, PolicyCommand, RelationKind,
    ResolvedArbiter, SchemaCatalog, TriggerEvent, TriggerTiming,
};
pub use embedded::{
    executed_query_text, executor_bindings, extract_embedded_sql_from_program,
    extract_embedded_sql_from_source, is_database_call, sql_text,
    summarize_undeclared_executor_types, EmbeddedSqlCall, EmbeddedSqlFileFacts,
    EmbeddedSqlFragment, EmbeddedSqlKind, EmbeddedSqlOptions, EmbeddedSqlSourcePosition,
    EmbeddedSqlVariant, SqlByteOrigins, SqlIdentifierAssertion, TrustedSqlTag,
    UndeclaredExecutorType, UndeclaredExecutorTypeSummary, MAX_EMBEDDED_SQL_VARIANTS,
    MAX_FROZEN_OBJECT_SQL_VARIANTS,
};
pub use no_mistakes_postgres_sql::{parse_postgres_sql, PostgresParseError};
pub use on_conflict::{judge_file, Catalog as IdempotentCatalog};
pub use options::ExecutorOption;
pub use statements::{
    extract_sql_statement_facts, extract_sql_statement_facts_for_embedded_call,
    has_top_level_not_exists_in, insert_keyword_count, mask_quoted_sql, SqlAssignmentFact,
    SqlBareRead, SqlBoundFact, SqlBoundInputMode, SqlBoundItem, SqlBoundItemKind, SqlBoundKind,
    SqlBoundOutput, SqlBoundPin, SqlBoundQuery, SqlColumnClause, SqlColumnUseFact,
    SqlConflictArbiter, SqlConflictWhereProof, SqlConjunctFact, SqlCountExistenceFact,
    SqlCursorBound, SqlExistsSetOpFact, SqlInsertFact, SqlLimitFact, SqlLimitValue,
    SqlOnConflictAction, SqlOnConflictFact, SqlPinSource, SqlQualifiedRead, SqlQualifiedScope,
    SqlRelationPredicateFact, SqlScalarReads, SqlSelectFact, SqlStatementFileFacts, SqlSweepFact,
    SqlTriggerEvent, SqlTriggerFact, SqlTriggerPeriod, SqlValueForm, SqlWriteColumns, SqlWriteFact,
};
pub use types::{
    PostgresFactError, PostgresFacts, PostgresSchemaOptions, SqlAddColumnMetadata,
    SqlColumnMetadata, SqlCreateIndexMetadata, SqlCreateTableMetadata, SqlDeclaredIdentifier,
    SqlDropIndexMetadata, SqlForeignKeyMetadata, SqlIndexParam, SqlNamedConstraint,
    SqlSchemaFileFacts, SqlSettingUse, SqlStatementKind, SqlTableSchemaEvent,
    SqlUnanalyzableStatement, SqlUnnamedConstraint,
};
pub use verdict::{
    SqlBranchJudgment, SqlEvidenceKind, SqlObligationVerdict, SqlRuleApplication, SqlVerdictStatus,
};