token

package
v0.0.0-...-c369810 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token int

Token is the minimal set of lexical tokens for SQL that we need to extract queries.

const (
	Illegal Token = iota
	EOF
	LineComment   // -- foo
	BlockComment  // /* foo */
	String        // 'foo', $$bar$$, $a$baz$a$
	QuotedIdent   // "foo_bar""baz"
	QueryFragment // anything else
	Semicolon     // semicolon ending a query
)

func (Token) String

func (t Token) String() string

Jump to

Keyboard shortcuts

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