sql

package
v0.0.0-...-c9b6943 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 8

Documentation

Index

Constants

View Source
const (
	VolumeName = "sql-binding"
	MountPath  = bindings.MountPath + "/sql" // filepath.Join isn't const.
)

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, dbType string) (*sql.DB, error)

Open returns a *sql.DB specified by the connectionstr secret.

func ReadKey

func ReadKey(key string) (string, error)

ReadKey may be used to read keys from the secret bound by the SQLBinding.

Types

This section is empty.

Jump to

Keyboard shortcuts

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