Skip to main content

Module sem

Module sem 

Source
Expand description

§Semantic analyzers

Re-exports§

pub use self::problem::AnalysisProblem;
pub use crate::AstAndContextPair;

Modules§

problem
problem module

Structs§

AliasSpec
alias name in from clause
AlterOwner
analyzed crate::syn::AlterOwnerStmt
AlterSequence
analyzed crate::syn::AlterSeqStmt
AlterTable
analyzed alter table statement
AlterView
analyzed alter view statement
ArrayExpr
array expression
BaseContext
schema informations for Builtin and extensions
BinaryOperatorDefinition
Binary opreators
BooleanExpr
boolean expression
CaseExpr
case expression
CastDefinition
type cast definition
CatalogName
part of name specifies catalog
CoalesceExpr
COALASCE expression
CollateExpr
Collate expression
ColumnCollection
columns in table
ColumnDefinition
column definitions
ColumnName
column name
Comment
analyzed crate::syn::CommentStmt
CreateCompositType
analyzed crate::syn::CompositeTypeStmt
CreateDomain
analyzed crate::syn::CreateDomainStmt
CreateEnum
analyzed crate::syn::CreateEnumStmt
CreateExtension
analyzed crate::syn::CreateExtensionStmt
CreateFunction
analyzed crate::syn::CreateFunctionStmt
CreateIndex
analyzed crate::syn::IndexStmt
CreateSchema
analyzed crate::syn::CreateSchemaStmt
CreateSequence
analyzed crate::syn::CreateSeqStmt
CreateTable
create table SQL statement
CreateTableAs
analyzed crate::syn::CreateTableAsStmt
CreateView
analyzed crate::syn::ViewStmt
CteColumnRef
Column reference for CTE source
DataSourceRowFunctions
row functions
DefElemKey
key of DefElem
DefElemList
hash map of DefElem
DefaultSourceAccessService
default implementation for SourceAccessService
DeleteStatement
DELETE statement
FromClause
semantic representation for FROM clause
FullName
full name parts.
FuncCallExpr
function call expression
FunctionOverloadCollection
function overload variants defined in same name
ImplicitCastExpr
implicit cast expression
IndexElementWithOrder
combine column and sort order , col_name
InsertStatement
semantic AST for insert statement
LocalName
part of name for schema specific local name
MinMaxExpr
MIN / MAX expression
NamedArgExpr
named argument expression
NullTestExpr
NullTestExpr
OverloadVariant
function overload variant
ParamRef
parameter reference expression
PgBuiltInType
Well-known Postgres Built-In types
PrimaryKeyConstraint
analyzed primary key constraint
SchemaFileContext
schema file based context
SchemaName
part of name specifies schema
SubLinkExpr
Sub-query expression
SubQueryColumnRef
column reference for sub-query
TableColumnRef
table column reference
TableName
table name
TypeCastExpr
explicit cast expression
UnaryOperatorDefinition
unary operator definitions
UpdateStatement
update statement sem AST
ValidOperatorName
operator name with schema(optional)
VariableSet
set a variable
ViewName
view name type
WithClause
analyzed crate::syn::WithClauseOpt

Enums§

AnalysisError
error
ArithExpr
arith expression
CastContext
type cast context
ColumnReferenceExpr
Column reference
Constraint
analyzed crate::syn::Constraint
CteStatement
CTE query item types
DataSource
from / join sources
DataSourceRowsFromFunc
rows from function
FunctionParam
function parameter type
ImplicitChange
constraint related schema change
IndexElement
IndexElement has column or expression
IndirectionExpr
Indirect expression
JoinKind
table join kind
OperatorDefinition
Binary / Unary operator
OperatorName
Operator name
ScalarConstExpr
constant expression
SelectStatement
select statement
SemAst
Semantic AST for top-level statement
SemScalarExpr
scalar explation in semantic ast
SortOrder
Index item sort order
SqlValueExpr
SQL value function
TypeDefinition
type definitions
TypeReference
type reference
ViewLike
view like object

Traits§

AnalizeConstraint
analyze crate::syn::Constraint variants
BaseParseContext
schema information database
CastInfoRead
get cast definition
FunctionInfoRead
get function definition
FunctionInfoWrite
store and update function info
IndexInfoRead
get index definition
OperatorInfoRead
get operator definition
ParseContext
modifiable schema
SearchPathRead
search path
SequenceInfoRead
get sequence definition
SequenceInfoWrite
store and update sequence info
SourceAccessService
provide access to source SQL file
TableInfoRead
get table definition
TableInfoWrite
table information writer
TypeInfoRead
get type definition
TypeInfoWrite
store and update type info
ViewInfoRead
get view definition
ViewInfoWrite
store update view definitions

Functions§

analyze_alter_owner
analyze crate::syn::AlterOwnerStmt
analyze_alter_seq
analyze crate::syn::AlterSeqStmt
analyze_alter_statement
analyze crate::syn::AlterTableStmt
analyze_comment
analyze crate::syn::CommentStmt
analyze_create_comp_type
analyze crate::syn::CompositeTypeStmt
analyze_create_domain
analyze crate::syn::CreateDomainStmt
analyze_create_enum_type
analyze crate::syn::CreateEnumStmt
analyze_create_extension
analyze crate::syn::CreateExtensionStmt
analyze_create_function
analyze crate::syn::CreateFunctionStmt
analyze_create_schema
analyze crate::syn::CreateSchemaStmt
analyze_create_seq
analyze crate::syn::CreateSeqStmt
analyze_create_stmt
analyze crate::syn::CreateStmt
analyze_create_table_as
analyze crate::syn::CreateTableAsStmt
analyze_create_view
analyze crate::syn::ViewStmt
analyze_def_elem_list
analyze crate::syn::NodeListOpt as DefElemList
analyze_delete_statement
analyze crate::syn::DeleteStmt
analyze_index_stmt
analyze crate::syn::IndexStmt
analyze_insert_statement
analyze crate::syn::InsertStmt
analyze_node
analyze node
analyze_scaler_expr
analyze crate::syn::Node as scaler expression
analyze_select
analyze crate::syn::SelectStmt
analyze_update_statement
analyze update statement
analyze_variable_set
analyze VariableSetStmt
semantic_analysis
analyze top-level SQL statement

Type Aliases§

CteName
CTE name
Nullable
source nullability type