Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultName = "_vt"
)
Variables ¶
View Source
var ( DBInitQueries = []string{ "use %s", createDBQuery, } // Query patterns to handle in mocks. DBInitQueryPatterns = []string{ createTableRegexp, alterTableRegexp, } )
Functions ¶
func GetCreateQuery ¶
func GetCreateQuery() string
GetCreateQuery returns the CREATE DATABASE SQL statement used to create the sidecar database.
func GetIdentifier ¶
func GetIdentifier() string
GetIdentifier returns the sidecar database name as an SQL identifier string, most importantly this means that it will be properly escaped if/as needed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.