Skip to main content

Class: abstract SqlVisitor<T, S>

Implements the visitor pattern for SQL trees.

Extended by

Type Parameters

Type ParameterDefault typeDescription
T-The return type of visit methods.
SunknownThe type of additional state that can be passed to visit methods.

Constructors

new SqlVisitor()

new SqlVisitor<T, S>(): SqlVisitor<T, S>

Returns

SqlVisitor<T, S>

Methods

visitAddColumn()

visitAddColumn(addColumn: SqlAddColumn, state?: S): T

Parameters

ParameterType
addColumnSqlAddColumn
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:147


visitAddForeignKey()

visitAddForeignKey(addConstraint: SqlAddForeignKey, state?: S): T

Parameters

ParameterType
addConstraintSqlAddForeignKey
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:67


visitAddPrimaryKey()

visitAddPrimaryKey(addPrimaryKey: SqlAddPrimaryKey, state?: S): T

Parameters

ParameterType
addPrimaryKeySqlAddPrimaryKey
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:155


visitAlias()

visitAlias(alias: SqlAlias, state?: S): T

Parameters

ParameterType
aliasSqlAlias
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:71


visitAlterColumn()

visitAlterColumn(alterColumn: SqlAlterColumn, state?: S): T

Parameters

ParameterType
alterColumnSqlAlterColumn
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:151


visitBinary()

visitBinary(binary: SqlBinary, state?: S): T

Parameters

ParameterType
binarySqlBinary
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:79


visitBoolean()

visitBoolean(boolean: SqlBoolean, state?: S): T

Parameters

ParameterType
booleanSqlBoolean
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:219


visitCase()

visitCase(cas: SqlCase, state?: S): T

Parameters

ParameterType
casSqlCase
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:259


visitColumn()

visitColumn(column: SqlColumn, state?: S): T

Parameters

ParameterType
columnSqlColumn
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:167


visitComposite()

visitComposite(composite: SqlComposite, state?: S): T

Parameters

ParameterType
compositeSqlComposite
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:107


visitCreateDatabase()

visitCreateDatabase(createDatabase: SqlCreateDatabase, state?: S): T

Parameters

ParameterType
createDatabaseSqlCreateDatabase
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:111


visitCreateIndex()

visitCreateIndex(createIndex: SqlCreateIndex, state?: S): T

Parameters

ParameterType
createIndexSqlCreateIndex
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:131


visitCreateSequence()

visitCreateSequence(createSequence: SqlCreateSequence, state?: S): T

Parameters

ParameterType
createSequenceSqlCreateSequence
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:139


visitCreateTable()

visitCreateTable(createTable: SqlCreateTable, state?: S): T

Parameters

ParameterType
createTableSqlCreateTable
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:119


visitDelete()

visitDelete(_delete: SqlDelete, state?: S): T

Parameters

ParameterType
_deleteSqlDelete
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:195


visitDropColumn()

visitDropColumn(dropColumn: SqlDropColumn, state?: S): T

Parameters

ParameterType
dropColumnSqlDropColumn
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:159


visitDropDatabase()

visitDropDatabase(dropDatabase: SqlDropDatabase, state?: S): T

Parameters

ParameterType
dropDatabaseSqlDropDatabase
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:115


visitDropIndex()

visitDropIndex(dropIndex: SqlDropIndex, state?: S): T

Parameters

ParameterType
dropIndexSqlDropIndex
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:135


visitDropSequence()

visitDropSequence(dropSequence: SqlDropSequence, state?: S): T

Parameters

ParameterType
dropSequenceSqlDropSequence
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:143


visitDropTable()

visitDropTable(dropTable: SqlDropTable, state?: S): T

Parameters

ParameterType
dropTableSqlDropTable
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:123


visitExists()

visitExists(exists: SqlExists, state?: S): T

Parameters

ParameterType
existsSqlExists
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:83


visitForeignKey()

visitForeignKey(foreignKey: SqlForeignKey, state?: S): T

Parameters

ParameterType
foreignKeySqlForeignKey
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:179


visitFunction()

visitFunction(func: SqlFunction, state?: S): T

Parameters

ParameterType
funcSqlFunction
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:183


visitIdentifier()

visitIdentifier(identifier: SqlIdentifier, state?: S): T

Parameters

ParameterType
identifierSqlIdentifier
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:171


visitIn()

visitIn(_in: SqlIn, state?: S): T

Parameters

ParameterType
_inSqlIn
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:87


visitInsert()

visitInsert(insert: SqlInsert, state?: S): T

Parameters

ParameterType
insertSqlInsert
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:187


visitIsNotNull()

visitIsNotNull(isNotNull: SqlIsNotNull, state?: S): T

Parameters

ParameterType
isNotNullSqlIsNotNull
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:243


visitIsNull()

visitIsNull(isNull: SqlIsNull, state?: S): T

Parameters

ParameterType
isNullSqlIsNull
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:239


visitJoin()

visitJoin(join: SqlJoin, state?: S): T

Parameters

ParameterType
joinSqlJoin
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:199


visitLike()

visitLike(like: SqlLike, state?: S): T

Parameters

ParameterType
likeSqlLike
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:91


visitMember()

visitMember(member: SqlMember, state?: S): T

Parameters

ParameterType
memberSqlMember
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:211


visitNegation()

visitNegation(negation: SqlNegation, state?: S): T

Parameters

ParameterType
negationSqlNegation
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:99


visitNextValue()

visitNextValue(nextValue: SqlNextValue, state?: S): T

Parameters

ParameterType
nextValueSqlNextValue
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:175


visitNode()

visitNode(node: SqlNode, state?: S): T

Parameters

ParameterType
nodeSqlNode
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:63


visitNot()

visitNot(not: SqlNot, state?: S): T

Parameters

ParameterType
notSqlNot
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:103


visitNotLike()

visitNotLike(notLike: SqlNotLike, state?: S): T

Parameters

ParameterType
notLikeSqlNotLike
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:95


visitNull()

visitNull(nul: SqlNull, state?: S): T

Parameters

ParameterType
nulSqlNull
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:235


visitNumber()

visitNumber(n: SqlNumber, state?: S): T

Parameters

ParameterType
nSqlNumber
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:215


visitOrderBy()

visitOrderBy(orderBy: SqlOrderBy, state?: S): T

Parameters

ParameterType
orderBySqlOrderBy
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:203


visitOrdering()

visitOrdering(ordering: SqlOrdering, state?: S): T

Parameters

ParameterType
orderingSqlOrdering
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:207


visitParameter()

visitParameter(parameter: SqlParameter, state?: S): T

Parameters

ParameterType
parameterSqlParameter
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:223


visitRaw()

visitRaw(raw: SqlRaw, state?: S): T

Parameters

ParameterType
rawSqlRaw
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:255


visitRenameColumn()

visitRenameColumn(renameColumn: SqlRenameColumn, state?: S): T

Parameters

ParameterType
renameColumnSqlRenameColumn
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:163


visitRenameTable()

visitRenameTable(renameTable: SqlRenameTable, state?: S): T

Parameters

ParameterType
renameTableSqlRenameTable
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:127


visitSelect()

visitSelect(select: SqlSelect, state?: S): T

Parameters

ParameterType
selectSqlSelect
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:227


visitSet()

visitSet(set: SqlSet, state?: S): T

Parameters

ParameterType
setSqlSet
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:263


visitStar()

visitStar(star: SqlStar, state?: S): T

Parameters

ParameterType
starSqlStar
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:231


visitString()

visitString(str: SqlString, state?: S): T

Parameters

ParameterType
strSqlString
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:247


visitTimestamp()

visitTimestamp(timestamp: SqlTimestamp, state?: S): T

Parameters

ParameterType
timestampSqlTimestamp
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:251


visitTypeAlias()

visitTypeAlias(typeAlias: SqlTypeAlias, state?: S): T

Parameters

ParameterType
typeAliasSqlTypeAlias
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:75


visitUpdate()

visitUpdate(update: SqlUpdate, state?: S): T

Parameters

ParameterType
updateSqlUpdate
state?S

Returns

T

Defined in

packages/verse-core/src/db/visitor.ts:191