Class: abstract
SqlVisitor<T, S>
Implements the visitor pattern for SQL trees.
Extended by
Type Parameters
Type Parameter | Default type | Description |
---|---|---|
T | - | The return type of visit methods. |
S | unknown | The 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
Parameter | Type |
---|---|
addColumn | SqlAddColumn |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:147
visitAddForeignKey()
visitAddForeignKey(
addConstraint
:SqlAddForeignKey
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
addConstraint | SqlAddForeignKey |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:67
visitAddPrimaryKey()
visitAddPrimaryKey(
addPrimaryKey
:SqlAddPrimaryKey
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
addPrimaryKey | SqlAddPrimaryKey |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:155
visitAlias()
visitAlias(
alias
:SqlAlias
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
alias | SqlAlias |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:71
visitAlterColumn()
visitAlterColumn(
alterColumn
:SqlAlterColumn
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
alterColumn | SqlAlterColumn |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:151
visitBinary()
visitBinary(
binary
:SqlBinary
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
binary | SqlBinary |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:79
visitBoolean()
visitBoolean(
boolean
:SqlBoolean
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
boolean | SqlBoolean |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:219
visitCase()
visitCase(
cas
:SqlCase
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
cas | SqlCase |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:259
visitColumn()
visitColumn(
column
:SqlColumn
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
column | SqlColumn |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:167
visitComposite()
visitComposite(
composite
:SqlComposite
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
composite | SqlComposite |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:107
visitCreateDatabase()
visitCreateDatabase(
createDatabase
:SqlCreateDatabase
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
createDatabase | SqlCreateDatabase |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:111
visitCreateIndex()
visitCreateIndex(
createIndex
:SqlCreateIndex
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
createIndex | SqlCreateIndex |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:131
visitCreateSequence()
visitCreateSequence(
createSequence
:SqlCreateSequence
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
createSequence | SqlCreateSequence |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:139
visitCreateTable()
visitCreateTable(
createTable
:SqlCreateTable
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
createTable | SqlCreateTable |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:119
visitDelete()
visitDelete(
_delete
:SqlDelete
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
_delete | SqlDelete |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:195
visitDropColumn()
visitDropColumn(
dropColumn
:SqlDropColumn
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
dropColumn | SqlDropColumn |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:159
visitDropDatabase()
visitDropDatabase(
dropDatabase
:SqlDropDatabase
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
dropDatabase | SqlDropDatabase |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:115
visitDropIndex()
visitDropIndex(
dropIndex
:SqlDropIndex
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
dropIndex | SqlDropIndex |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:135
visitDropSequence()
visitDropSequence(
dropSequence
:SqlDropSequence
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
dropSequence | SqlDropSequence |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:143
visitDropTable()
visitDropTable(
dropTable
:SqlDropTable
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
dropTable | SqlDropTable |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:123
visitExists()
visitExists(
exists
:SqlExists
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
exists | SqlExists |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:83
visitForeignKey()
visitForeignKey(
foreignKey
:SqlForeignKey
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
foreignKey | SqlForeignKey |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:179
visitFunction()
visitFunction(
func
:SqlFunction
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
func | SqlFunction |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:183
visitIdentifier()
visitIdentifier(
identifier
:SqlIdentifier
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
identifier | SqlIdentifier |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:171
visitIn()
visitIn(
_in
:SqlIn
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
_in | SqlIn |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:87
visitInsert()
visitInsert(
insert
:SqlInsert
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
insert | SqlInsert |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:187
visitIsNotNull()
visitIsNotNull(
isNotNull
:SqlIsNotNull
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
isNotNull | SqlIsNotNull |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:243
visitIsNull()
visitIsNull(
isNull
:SqlIsNull
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
isNull | SqlIsNull |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:239
visitJoin()
visitJoin(
join
:SqlJoin
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
join | SqlJoin |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:199
visitLike()
visitLike(
like
:SqlLike
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
like | SqlLike |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:91
visitMember()
visitMember(
member
:SqlMember
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
member | SqlMember |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:211
visitNegation()
visitNegation(
negation
:SqlNegation
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
negation | SqlNegation |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:99
visitNextValue()
visitNextValue(
nextValue
:SqlNextValue
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
nextValue | SqlNextValue |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:175
visitNode()
visitNode(
node
:SqlNode
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
node | SqlNode |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:63
visitNot()
visitNot(
not
:SqlNot
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
not | SqlNot |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:103
visitNotLike()
visitNotLike(
notLike
:SqlNotLike
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
notLike | SqlNotLike |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:95
visitNull()
visitNull(
nul
:SqlNull
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
nul | SqlNull |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:235
visitNumber()
visitNumber(
n
:SqlNumber
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
n | SqlNumber |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:215
visitOrderBy()
visitOrderBy(
orderBy
:SqlOrderBy
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
orderBy | SqlOrderBy |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:203
visitOrdering()
visitOrdering(
ordering
:SqlOrdering
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
ordering | SqlOrdering |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:207
visitParameter()
visitParameter(
parameter
:SqlParameter
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
parameter | SqlParameter |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:223
visitRaw()
visitRaw(
raw
:SqlRaw
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
raw | SqlRaw |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:255
visitRenameColumn()
visitRenameColumn(
renameColumn
:SqlRenameColumn
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
renameColumn | SqlRenameColumn |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:163
visitRenameTable()
visitRenameTable(
renameTable
:SqlRenameTable
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
renameTable | SqlRenameTable |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:127
visitSelect()
visitSelect(
select
:SqlSelect
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
select | SqlSelect |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:227
visitSet()
visitSet(
set
:SqlSet
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
set | SqlSet |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:263
visitStar()
visitStar(
star
:SqlStar
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
star | SqlStar |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:231
visitString()
visitString(
str
:SqlString
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
str | SqlString |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:247
visitTimestamp()
visitTimestamp(
timestamp
:SqlTimestamp
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
timestamp | SqlTimestamp |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:251
visitTypeAlias()
visitTypeAlias(
typeAlias
:SqlTypeAlias
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
typeAlias | SqlTypeAlias |
state ? | S |
Returns
T
Defined in
packages/verse-core/src/db/visitor.ts:75
visitUpdate()
visitUpdate(
update
:SqlUpdate
,state
?:S
):T
Parameters
Parameter | Type |
---|---|
update | SqlUpdate |
state ? | S |
Returns
T