Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataBaseFunctions ¶
func DataBaseFunctions(driver DatabaseDriver) []string
func DataBaseKeywords ¶
func DataBaseKeywords(driver DatabaseDriver) []string
Types ¶
type DatabaseDriver ¶
type DatabaseDriver string
const ( DatabaseDriverMySQL DatabaseDriver = "mysql" DatabaseDriverMySQL8 DatabaseDriver = "mysql8" DatabaseDriverMySQL57 DatabaseDriver = "mysql57" DatabaseDriverMySQL56 DatabaseDriver = "mysql56" DatabaseDriverPostgreSQL DatabaseDriver = "postgresql" DatabaseDriverSQLite3 DatabaseDriver = "sqlite3" DatabaseDriverMssql DatabaseDriver = "mssql" DatabaseDriverOracle DatabaseDriver = "oracle" )
type GenericSQLDialect ¶
type GenericSQLDialect struct { }
func (*GenericSQLDialect) IsDelimitedIdentifierStart ¶
func (*GenericSQLDialect) IsDelimitedIdentifierStart(r rune) bool
func (*GenericSQLDialect) IsIdentifierPart ¶
func (*GenericSQLDialect) IsIdentifierPart(r rune) bool
func (*GenericSQLDialect) IsIdentifierStart ¶
func (*GenericSQLDialect) IsIdentifierStart(r rune) bool
func (*GenericSQLDialect) IsPlaceHolderPart ¶
func (*GenericSQLDialect) IsPlaceHolderPart(r rune) bool
func (*GenericSQLDialect) IsPlaceHolderStart ¶
func (*GenericSQLDialect) IsPlaceHolderStart(r rune) bool
type KeywordKind ¶
type KeywordKind int
const ( // Matched keyword Matched KeywordKind = iota // Data Manipulation Language DML // Data Definition Language DDL // Data Control Language DCL // Unmatched keyword (like table and column identifier) Unmatched = 99 )
func MatchKeyword ¶
func MatchKeyword(upperWord string) KeywordKind
Click to show internal directories.
Click to hide internal directories.