sdk

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataType

func DataType(n *plugin.Identifier) string

func DoubleSlashComment

func DoubleSlashComment(s string) string

func EscapeBacktick

func EscapeBacktick(s string) string

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 LowerTitle(s string) string

func MatchString

func MatchString(pat, target string) bool

func Matches

func Matches(o *plugin.Override, n *plugin.Identifier, defaultSchema string) bool

func SameTableName

func SameTableName(tableID, f *plugin.Identifier, defaultSchema string) bool

func Title

func Title(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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