sidecar

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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.

func GetName

func GetName() string

func SetName

func SetName(name string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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