Documentation ¶
Index ¶
- func DataType(n *plugin.Identifier) string
- func DoubleSlashComment(s string) string
- func EscapeBacktick(s string) string
- func LowerTitle(s string) string
- func MatchString(pat, target string) bool
- func Matches(o *plugin.Override, n *plugin.Identifier, defaultSchema string) bool
- func SameTableName(tableID, f *plugin.Identifier, defaultSchema string) bool
- func Title(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataType ¶
func DataType(n *plugin.Identifier) string
func DoubleSlashComment ¶
func EscapeBacktick ¶
Go string literals cannot contain backtick. If a string contains a backtick, replace it the following way:
input:
SELECT `group` FROM foo
output:
SELECT ` + "`" + `group` + "`" + ` FROM foo
The escaped string must be rendered inside an existing string literal ¶
A string cannot be escaped twice
func LowerTitle ¶
func MatchString ¶
func SameTableName ¶
func SameTableName(tableID, f *plugin.Identifier, defaultSchema string) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.