models

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenType

type TokenType int

TokenType represents different types of SQL tokens

const (
	TokenTypeUnknown TokenType = iota

	// Basic token types
	TokenTypeIdentifier
	TokenTypeString
	TokenTypeOperator
	TokenTypeEquals
	TokenTypeLessThan
	TokenTypeGreaterThan
	TokenTypeLessEquals
	TokenTypeGreaterEquals
	TokenTypeNotEquals
	TokenTypeConcat
	TokenTypeCast
	TokenTypeDoubleArrow

	// Punctuation token types
	TokenTypeLeftParen
	TokenTypeRightParen
	TokenTypeLeftBracket
	TokenTypeRightBracket
	TokenTypeLeftBrace
	TokenTypeRightBrace
	TokenTypeDot

	// Join related token types
	TokenTypeFullJoin
	TokenTypeCrossJoin
	TokenTypeNaturalJoin
	TokenTypeUsing

	// DML related token types
	TokenTypeDistinct
	TokenTypeAll
	TokenTypeFetch
	TokenTypeNext
	TokenTypeRows
	TokenTypeOnly
	TokenTypeWith
	TokenTypeTies
	TokenTypeNulls
	TokenTypeFirst
	TokenTypeLast
)

func (TokenType) String

func (t TokenType) String() string

String returns the string representation of the token type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL