package
0.0.0-20250302012944-701c1ceec546
Repository: https://github.com/khulnasoft/devsecdb.git
Documentation: pkg.go.dev

# Functions

NewChooseNode creates a new choose node.
NewDataNode creates a new data node.
NewEmptyNode returns a new empty node.
NewForeachNode creates a new foreach node.
NewIfNode creates a new if node.
NewIncludeNode creates a new include node.
NewMapperNode creates a new mapper node.
NewOtherwiseNode creates a new otherwise node.
NewPropertyNode creates a new property node.
NewQueryNode creates a new query node.
NewSetNode creates a new set node.
NewSQLNode creates a new sql node.
NewTrimNode creates a new trim node.
NewWhenNode creates a new when node.
NewWhereNode creates a new where node.

# Constants

QueryNodeTypeDelete represents a delete query node.
QueryNodeTypeInsert represents a insert query node.
QueryNodeTypeSelect represents a select query node.
QueryNodeTypeUpdate represents a update query node.

# Structs

ChooseNode represents a choose node in mybatis mapper xml likes <choose>...</choose>.
DataNode represents a data node which contains plain text, parameter or variable.
EmptyNode represents an unacceptable nodes in mybatis mapper xml.
ForEachNode represents a foreach node in mybatis mapper xml likes <foreach collection="collection" item="item" index="index" open="open" close="close" separator="separator">...</foreach>.
IfNode represents a if node in mybatis mapper xml likes <if test="condition">...</if>.
IncludeNode represents a include node in mybatis mapper xml likes <include refid="refId">...</include>.
MapperNode represents a mapper node in mybatis mapper xml begin with <mapper>.
MybatisSQLLineMapping represents the line mapping of the SQL statement in Mybatis mapper xml.
OtherwiseNode represents a otherwise node in mybatis mapper xml select node likes <select><otherwise>...</otherwise></select>.
ParameterNode represents a parameter node in mybatis mapper xml likes #{param}.
PropertyNode represents a property node in mybatis mapper xml likes <property name="name" value="value" />.
QueryNode represents a query node.
RestoreContext is the context for restoring SQL statement.
RootNode represents the root node of the AST.
SetNode represents a set node in mybatis mapper xml likes <set>...</set>.
SQLNode represents a sql node in mybatis mapper xml likes <sql id="sqlId">...</sql>.
TextNode represents a text node which only contains plain text.
TrimNode represents a trim node in mybatis mapper xml likes <trim prefix="prefix" suffix="suffix" prefixOverrides="prefixOverrides" suffixOverrides="suffixOverrides">...</trim>.
VariableNode represents a variable node in mybatis mapper xml likes ${variable}.
WhenNode represents a when node in mybatis mapper xml select node likes <select><when test="condition">...</when></select>.
WhereNode represents a where node in mybatis mapper xml likes <where>...</where>.

# Interfaces

Node is the interface implemented by all AST node types.

# Type aliases

QueryNodeType is the type of the query node.