no_mistakes_postgres_engine/
lib.rs1#[doc(hidden)]
4pub const TEST_INSTRUMENTATION_ENABLED: bool = cfg!(feature = "test-instrumentation");
5
6pub mod catalog;
7pub mod embedded;
8pub mod embedded_dml;
9pub mod executor_detachment;
10#[doc(hidden)]
11pub mod fx {
12 pub use no_mistakes_ts_facts::fx::*;
13}
14pub mod hooks;
15pub mod lock_inventory;
16pub mod on_conflict;
17pub mod options;
18pub mod statements;
19#[cfg(test)]
20pub(crate) mod test_support;
21pub mod types;
22pub mod verdict;
23pub mod view_bounds;
24
25pub use catalog::{
26 canonical_key, catalog_finding, expression_matches, order_prefix_matches,
27 parse_postgres_expression, require_catalog_path, AllowEntry, AllowList, CanonicalIndex,
28 CanonicalOrderKey, CatalogCheck, CatalogColumn, CatalogCoverage, CatalogEnum,
29 CatalogForeignKey, CatalogFunction, CatalogIndexInfo, CatalogIndexKey, CatalogObjectRef,
30 CatalogRowSecurity, CatalogTable, CatalogTrigger, CatalogUnique, CatalogView, GeneratedKind,
31 PartitionKey, PartitionKeyElement, PartitionStrategy, PolicyCommand, RelationKind,
32 ResolvedArbiter, SchemaCatalog, TriggerEvent, TriggerTiming,
33};
34pub use embedded::{
35 executed_query_text, executor_bindings, extract_embedded_sql_from_program,
36 extract_embedded_sql_from_source, is_database_call, sql_text,
37 summarize_undeclared_executor_types, EmbeddedSqlCall, EmbeddedSqlFileFacts,
38 EmbeddedSqlFragment, EmbeddedSqlKind, EmbeddedSqlOptions, EmbeddedSqlSourcePosition,
39 EmbeddedSqlVariant, SqlByteOrigins, SqlIdentifierAssertion, TrustedSqlTag,
40 UndeclaredExecutorType, UndeclaredExecutorTypeSummary, MAX_EMBEDDED_SQL_VARIANTS,
41 MAX_FROZEN_OBJECT_SQL_VARIANTS,
42};
43pub use no_mistakes_postgres_sql::{parse_postgres_sql, PostgresParseError};
44pub use on_conflict::{judge_file, Catalog as IdempotentCatalog};
45pub use options::ExecutorOption;
46pub use statements::{
47 extract_sql_statement_facts, extract_sql_statement_facts_for_embedded_call,
48 has_top_level_not_exists_in, insert_keyword_count, mask_quoted_sql, SqlAssignmentFact,
49 SqlBareRead, SqlBoundFact, SqlBoundInputMode, SqlBoundItem, SqlBoundItemKind, SqlBoundKind,
50 SqlBoundOutput, SqlBoundPin, SqlBoundQuery, SqlColumnClause, SqlColumnUseFact,
51 SqlConflictArbiter, SqlConflictWhereProof, SqlConjunctFact, SqlCountExistenceFact,
52 SqlCursorBound, SqlExistsSetOpFact, SqlInsertFact, SqlLimitFact, SqlLimitValue,
53 SqlOnConflictAction, SqlOnConflictFact, SqlPinSource, SqlQualifiedRead, SqlQualifiedScope,
54 SqlRelationPredicateFact, SqlScalarReads, SqlSelectFact, SqlStatementFileFacts, SqlSweepFact,
55 SqlTriggerEvent, SqlTriggerFact, SqlTriggerPeriod, SqlValueForm, SqlWriteColumns, SqlWriteFact,
56};
57pub use types::{
58 PostgresFactError, PostgresFacts, PostgresSchemaOptions, SqlAddColumnMetadata,
59 SqlColumnMetadata, SqlCreateIndexMetadata, SqlCreateTableMetadata, SqlDeclaredIdentifier,
60 SqlDropIndexMetadata, SqlForeignKeyMetadata, SqlIndexParam, SqlNamedConstraint,
61 SqlSchemaFileFacts, SqlSettingUse, SqlStatementKind, SqlTableSchemaEvent,
62 SqlUnanalyzableStatement, SqlUnnamedConstraint,
63};
64pub use verdict::{
65 SqlBranchJudgment, SqlEvidenceKind, SqlObligationVerdict, SqlRuleApplication, SqlVerdictStatus,
66};