db

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNamedObjectNotFound = errors.New("Named object not found on database")
)

Functions

func Comment added in v0.0.17

func Comment(tx *sql.Tx, t, objectName, newComment, schema string) error

Comment changes the comment on the Database object

func MustCommit

func MustCommit(tx *sql.Tx)

MustCommit tries commit and fails hard if it does not work

func Rename

func Rename(tx *sql.Tx, t, old, new, schema string) error

Rename changes the name on the Database

func RenameGlobal

func RenameGlobal(tx *sql.Tx, t, old, new string) error

RenameGlobal changes the global name on the Database

Types

This section is empty.

Jump to

Keyboard shortcuts

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