Documentation ¶
Index ¶
- Constants
- func BoolToInt(b bool) int
- func BoolToPtr(b bool) *bool
- func GetFilePaths(query string) ([]string, error)
- func GetRowSeparator(query string) string
- func IsImportQuery(query string) bool
- func NamedValuesToValues(namedValues []driver.NamedValue) ([]driver.Value, error)
- func OpenFile(path string) (*os.File, error)
- func ParseRange(hostRangeRegex *regexp.Regexp, host string) ([]string, error)
- func ResolveHosts(h string) ([]string, error)
- func ShuffleHosts(hosts []string)
- func UpdateImportQuery(query string, host string, port int) string
Constants ¶
View Source
const FILE_PLACEHOLDER = "FilePlaceholder"
View Source
const QUOTE = `["']`
View Source
const ROW_SEPARATOR_PLACEHOLDER = "RowSeparatorPlaceholder"
View Source
const WHITESPACE = `\s+`
Variables ¶
This section is empty.
Functions ¶
func GetFilePaths ¶
func GetRowSeparator ¶
func IsImportQuery ¶
func NamedValuesToValues ¶
func NamedValuesToValues(namedValues []driver.NamedValue) ([]driver.Value, error)
func ResolveHosts ¶
func ShuffleHosts ¶
func ShuffleHosts(hosts []string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.