test

package
v0.0.59 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Env

func Env(key, fallback string) string

func GetPostgresReplURL

func GetPostgresReplURL() string

func GetPostgresURL

func GetPostgresURL() string

func GetPulsarAdminURL

func GetPulsarAdminURL() string

func GetPulsarURL

func GetPulsarURL() string

func ShouldSkipTestByPGVersion

func ShouldSkipTestByPGVersion(t *testing.T, minimumVersion float64)

Types

type DBURL

type DBURL struct {
	Host string
	DB   string
}

func CreateDB

func CreateDB(u DBURL, n DBURL) (DBURL, error)

func (DBURL) CleanData

func (u DBURL) CleanData(table string) error

func (DBURL) Exec

func (u DBURL) Exec(stmts ...string) error

func (DBURL) RandomData

func (u DBURL) RandomData(table string) error

func (DBURL) Repl

func (u DBURL) Repl() string

func (DBURL) TablePages

func (u DBURL) TablePages(table string) (pages int, err error)

func (DBURL) URL

func (u DBURL) URL() string

Jump to

Keyboard shortcuts

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