package
0.0.0-20250302012944-701c1ceec546
Repository: https://github.com/khulnasoft/devsecdb.git
Documentation: pkg.go.dev
# Functions
Walk walks the AST.
# Constants
ConstraintTypeCheck is the check constraint.
ConstraintTypeDefault is the default constraint.
ConstraintTypeExclusion is the exclude constraint.
ConstraintTypeForeign is the foreign key constraint.
ConstraintTypeGenerated is the generated constraint.
ConstraintTypeNotNull is the not null constraint.
ConstraintTypeNull is the null constraint.
ConstraintTypePrimary is the primary key constraint.
ConstraintTypePrimaryUsingIndex is the primary key constraint only for the PostgreSQL table_constraint_using_index.
ConstraintTypeUndefined is the undefined type.
ConstraintTypeUnique is the unique constraint.
ConstraintTypeUniqueUsingIndex is the unique constraint only for the PostgreSQL table_constraint_using_index.
DatabaseOptionEncoding is the type for the database encoding option.
DropBehaviorCascade is the type for drop object statements with cascade.
DropBehaviorNone is the default type for drop object statements.
DropBehaviorRestrict is the type for drop object statement with restrict.
ForeignMatchTypeFull is the match type which doesn't allow one column of a multi-column foreign key to be null unless all foreign key columns are null.
ForeignMatchTypePartial is not yet implemented.
ForeignMatchTypeSimple is the match type which allows any of the foreign key columns to be null.
FunctionParameterModeDefault is mode for the DEFAULT parameters.
FunctionParameterModeIn is mode for the IN parameters.
FunctionParameterModeInOut is mode for the OUT parameters.
FunctionParameterModeOut is mode for the OUT parameters.
FunctionParameterModeTable is mode for the TABLE parameters.
FunctionParameterModeUndefined is the undefined parameter mode.
FunctionParameterModeVariadic is mode for the VARIADIC parameters.
IndexKeyTypeColumn is the type for the column.
IndexKeyTypeExpression is the type for the expression.
IndexMethodTypeBrin is the index method type for BRIN.
IndexMethodTypeBTree is the index method type for B-Tree.
IndexMethodTypeGin is the index method type for GIN.
IndexMethodTypeGiST is the index method type for GiST.
IndexMethodTypeHash is the index method type for hash.
IndexMethodTypeIvfflat is the index method type for ivfflat.
IndexMethodTypeSpGiST is the index method type for SP-GiST.
NullOrderTypeDefault is the default null sort order type.
NullOrderTypeFirst is the null sort order type that nulls sort before non-nulls.
NullOrderTypeLast is the null sort order type that nulls sort after non-nulls.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PartitionKeyTypeColumn is the type of partition key column.
PartitionKeyTypeExpression is the type of partition key expression.
PositionTypeAfter is the type of after neighbor label.
PositionTypeBefore is the type of before neighbor label.
PositionTypeEnd is the type of new label at the end of the list labels.
ReferentialActionTypeCascade is the referential action type which will delete any rows referencing the deleted row, or update the values of the referencing column(s) to the new values of the referenced columns, respectively.
ReferentialActionTypeNoAction is the referential action type which will produce an error indicating that the deletion or update would create a foreign key constraint violation.
ReferentialActionTypeRestrict is the referential action type which will produce an error indicating that the deletion or update would create a foreign key constraint violation.
ReferentialActionTypeSetDefault is the referential action type which will set all of the referencing columns, or a specified subset of the referencing columns(pg 15), to their default values.
ReferentialActionTypeSetNull is the referential action type which will set all of the referencing columns, or a specified subset of the referencing columns(pg 15), to null.
RoleSpecTypeCurrentRole is CURRENT_ROLE.
RoleSpecTypeCurrentUser is CURRENT_USER.
RoleSpecTypeNone is the default value for RoleSpecType.
RoleSpecTypeSessionUser is SESSION_USER.
RoleSpecTypeUser is a user role.
SetOperationTypeExcept is the type for EXCEPT.
SetOperationTypeIntersect is the type for INTERSECT.
SetOperationTypeNone is the type for no set operation, which means a SELECT stmt.
SetOperationTypeUnion is the type for UNION.
SortOrderTypeAscending is the sort order type for ASC.
SortOrderTypeDefault is the sort order type for default value.
SortOrderTypeDescending is the sort order type for DESC.
TableTypeBaseTable is the type for table.
TableTypeMaterializedView is the type for materialized view.
TableTypeUnknown is the type for table or view, which means we can't be sure of it.
TableTypeView is the type for view.
# Structs
AddColumnListStmt is the struct for add columns statement.
AddConstraintStmt is the struct for add constraint statement.
AddEnumLabelStmt is the struct of add enum label statements.
AlterColumnTypeStmt is the struct for alter column type statement.
AlterSequenceStmt is the struct for alter sequence statements.
AlterTableStmt is the struct for alter table or view statement.
AlterTypeStmt is the struct for ALTER TYPE statements.
AttachPartitionStmt is the attach partition statement.
ByItemDef is the struct for item in order by or group by.
ChangeColumnStmt is the strcut for change column statement.
Character is the struct for the character.
CharacterVarying is the struct for the character varying(varchar).
CollationNameDef is the struct for collation name.
ColumnDef is struct for column definition.
ColumnNameDef is the struct for column name definition.
CommentStmt is the struct for comment statement.
CommitStmt is the struct for commit statement.
ConstraintDef is struct for constraint definition.
CopyStmt is the struct for copy statement.
CreateDatabaseStmt is the struct for create database stmt.
CreateExtensionStmt is the struct for create extension statement.
CreateFunctionStmt is the struct for create function statement.
CreateIndexStmt is the struct for create index statement.
No description provided by the author
CreateSchemaStmt is the struct for create schema statement.
CreateSequenceStmt is a statement to create a sequence.
CreateTableStmt is the struct for create table stmt.
CreateTriggerStmt is the definition of create trigger statements.
CreateTypeStmt is the struct for CREATE TYPE statements.
No description provided by the author
DatabaseOptionDef is the struct for database option.
Decimal is the struct for decimal.
DeleteStmt is the struct for delete statement.
DropColumnStmt is the struct for drop column statement.
DropConstraintStmt is the struct for drop constraint statement.
DropDatabaseStmt is the struct for drop database statement.
DropDefaultStmt is the struct for drop default statement.
DropExtensionStmt is the struct for drop extension statement.
DropFunctionStmt is the struct for drop function statement.
DropIndexStmt is the struct for drop index statement.
DropNotNullStmt is the struct for set not null statement.
DropSchemaStmt is the struct for drop schema statement.
DropSequenceStmt is the struct for drop sequence statement.
DropTableStmt is the struct for drop table or view statement.
DropTriggerStmt is the definition of drop trigger statements.
DropTypeStmt is the struct for DROP TYPE statements.
EnumTypeDef is the struct for enum types.
ExplainStmt is the struct for explain statement.
Float is the struct for floating-point.
ForeignDef is struct for foreign key reference.
FunctionDef is the struct for function definition.
FunctionParameterDef is the struct for function parameter definition.
IndexDef is the struct for index definition.
IndexKeyDef is the struct for index key definition.
InsertStmt is the struct for insert statement.
Integer is the struct for integer.
IntegerDef is the struct for integer definition.
PartitionDef is the struct for partition specification.
PartitionKeyDef is the struct for partition key definition.
PatternLikeDef is the struct for LIKE expression definition, e.g.
ReferentialActionDef is the struct for referential actions.
RenameColumnStmt is the rename column statement.
RenameConstraintStmt is the struct for rename constraint statement.
RenameIndexStmt is the struct for the rename index statement.
RenameSchemaStmt is the struct for the rename schema statement.
RenameTableStmt is the struct for rename table or view statement.
RoleSpec is the struct for role specification.
SelectStmt is the struct for select statement.
SequenceDef is the struct for sequence definition.
SequenceNameDef is the name of a sequence.
Serial is the struct for serial.
SetDefaultStmt is the struct for set default statement.
SetNotNullStmt is the struct for set not null statement.
SetSchemaStmt is the struct for set schema statement.
StringDef is the struct for string definition.
SubqueryDef is the struct for subquery definition.
TableDef is the strcut for table.
Text is the struct for the character.
TriggerDef is the definition of trigger.
TypeNameDef is the struct for user defined type names.
UnconvertedDataType is the struct for unconverted data type.
UnconvertedExpressionDef is the struct for unconveted expression definition.
UnconvertedStmt is the struct for unconverted statement definition.
UpdateStmt is the struct for update statement.
No description provided by the author
No description provided by the author
# Interfaces
CharacterType is the interface for character type.
DataType is the interface for data type.
DDLNode is the interface for DDL.
DMLNode is the interface for DML.
ExpressionNode is the interface for expressions.
Node is the interface for node.
NumericType is the interface for numeric type.
UserDefinedType is the interface for user defined types.
Visitor is the interface for visitor pattern.
# Type aliases
ConstraintType is the type for constraints.
DatabaseOptionType is the type for database options.
DropBehavior is the type for drop object statements.
ForeignMatchType is the match type for referencing columns and referenced columns.
FunctionParameterMode is the definition for function parameter mode.
IndexKeyType is the type for index key.
IndexMethodType is the index method type.
NullOrderType is the null sort order type for the index.
No description provided by the author
PartitionKeyType is the type of partition key.
PositionType is the type of new label position.
ReferentialActionType is the type for referential action.
RoleSpecType is the type of a role specification.
SetOperationType is the type for set operations.
SortOrderType is the sort order type for the index.
TableType is the type for table.