dbtest

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDB

func CreateDB(name string) (string, error)

CreateDB creates a new database and returns the connection URL string of it. The database is created at the postgresql instance reachable via PSQLURL()

func PSQLURL

func PSQLURL() string

PSQLURL returns the value of the environment variable BAUR_TEST_POSTGRESQL_URL. If the environment variable is undefined or empty, defDBURL is returned.

func UniqueDBName

func UniqueDBName() string

UniqueDBName returns a unique postgresql database name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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