pg

package
v0.0.0-...-193f563 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBHost     = "localhost"
	DBPort     = "5439"
	DBUser     = "postgres"
	DBPassword = "example"
	DBName     = "test"
)

DB info

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(t *testing.T, cfg *backendConfig.Config) func()

CreateDatabase create pg db for test

func CreatePGDatabase

func CreatePGDatabase(port, databaseName string) error

CreatePGDatabase create a database with shell script

Types

type User

type User struct {
	ID   int `sql:"primary_key"`
	Name string
}

User struct for test

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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