Skip to main content

Crate no_mistakes_postgres_sql

Crate no_mistakes_postgres_sql 

Source
Expand description

PostgreSQL SQL parsing, statement facts, and identifier extraction.

Re-exports§

pub use annotation::leading_query_annotation;
pub use annotation::sql_requires_query_annotation;
pub use bound_expr::canonical_bound_expr;
pub use catalog_hooks::CatalogLifecycleLookup;
pub use catalog_hooks::CatalogTriggerWrite;
pub use catalog_hooks::SearchPathResolution;
pub use catalog_hooks::TriggerEvent;
pub use conflict::analyze_conflict_inserts;
pub use conflict::analyze_conflict_inserts_with_binds;
pub use conflict::expression_is_constant;
pub use conflict::SqlConflictInsertFact;
pub use conflict::SqlConflictTarget;
pub use conflict::SqlInsertSourceShape;
pub use conflict::SqlPinnedJoinEquality;
pub use conflict::SqlPinnedRelation;
pub use conflict::SqlPinnedSource;
pub use conflict::SqlSourceRelation;
pub use dml::extract_dml_write_targets;
pub use dml::find_generated_column_writes;
pub use dml::GeneratedColumnWrite;
pub use dml::GeneratedTable;
pub use dml::GeneratedTableColumns;
pub use function_calls::SqlFunctionCallFact;
pub use function_calls::SqlFunctionClause;
pub use locking::extract_locking_select_metadata;
pub use locking::extract_locking_select_metadata_with_placeholders;
pub use locking::JoinEquality;
pub use locking::LockingSelectMetadata;
pub use migration::extract_migration_facts;
pub use offset::sql_file_offset_uses;
pub use offset::sql_has_offset_clause;
pub use offset::sql_offset_uses;
pub use offset::OffsetUse;
pub use offset::SqlOffsetFact;
pub use order::canonical_order_keys;
pub use order::order_by_ascending;
pub use order::CanonicalOrderKey;
pub use parse::parse_postgres_expression;
pub use parse::parse_postgres_sql;
pub use parse::PostgresParseError;
pub use schema::extract_create_table_metadata;
pub use sql_names::decoded_parts;
pub use statements::extract_sql_statement_facts;
pub use statements::has_top_level_not_exists_in;
pub use statements::insert_keyword_count;
pub use statements::mask_quoted_sql;
pub use statements::SqlAssignmentFact;
pub use statements::SqlBareRead;
pub use statements::SqlBoundFact;
pub use statements::SqlBoundInputMode;
pub use statements::SqlBoundItem;
pub use statements::SqlBoundItemKind;
pub use statements::SqlBoundKind;
pub use statements::SqlBoundOutput;
pub use statements::SqlBoundPin;
pub use statements::SqlBoundQuery;
pub use statements::SqlColumnClause;
pub use statements::SqlColumnUseFact;
pub use statements::SqlConflictArbiter;
pub use statements::SqlConflictWhereProof;
pub use statements::SqlConjunctFact;
pub use statements::SqlCountExistenceFact;
pub use statements::SqlCursorBound;
pub use statements::SqlExistsSetOpFact;
pub use statements::SqlInsertFact;
pub use statements::SqlLimitFact;
pub use statements::SqlLimitValue;
pub use statements::SqlOnConflictAction;
pub use statements::SqlOnConflictFact;
pub use statements::SqlPinSource;
pub use statements::SqlQualifiedRead;
pub use statements::SqlQualifiedScope;
pub use statements::SqlRelationPredicateFact;
pub use statements::SqlScalarReads;
pub use statements::SqlSelectFact;
pub use statements::SqlStatementFileFacts;
pub use statements::SqlSweepFact;
pub use statements::SqlTriggerEvent;
pub use statements::SqlTriggerFact;
pub use statements::SqlTriggerPeriod;
pub use statements::SqlValueForm;
pub use statements::SqlWriteColumns;
pub use statements::SqlWriteFact;
pub use types::PostgresFactError;
pub use types::PostgresSchemaOptions;
pub use types::SqlAddColumnMetadata;
pub use types::SqlColumnMetadata;
pub use types::SqlCreateIndexMetadata;
pub use types::SqlCreateTableMetadata;
pub use types::SqlDeclaredIdentifier;
pub use types::SqlDropIndexMetadata;
pub use types::SqlForeignKeyMetadata;
pub use types::SqlIndexParam;
pub use types::SqlNamedConstraint;
pub use types::SqlSchemaFileFacts;
pub use types::SqlSettingUse;
pub use types::SqlStatementKind;
pub use types::SqlTableSchemaEvent;
pub use types::SqlUnanalyzableStatement;
pub use types::SqlUnnamedConstraint;
pub use source::*;

Modules§

annotation
bound_expr
catalog_hooks
Narrow trait and data hooks inverting catalog dependencies from SQL analysis.
conflict
dml
Cheap DML write-target extraction and generated-column write matching.
function_calls
Syntactic calls shared by SQL policies; names and locations retain SQL identity.
idents
lock_inventory
locking
migration
migration_order
numeric_literal
offset
order
parse
predicate_normalization
Stable predicate comparison preserves literal and quoted identifier contents.
schema
source
Standalone source facts: one prepared token inventory, one AST per statement.
sql_include_policy
sql_names
star_projection
statement_facts
statements
Typed INSERT, SELECT, and trigger facts from PostgreSQL SQL.
types