exp

package module
v0.0.0-...-ebb074b Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 5 Imported by: 0

README

Sqlc experiment

Each folder contains an experiment on sqlc. The experiments can be run with go test and a few environment variables: DB_HOST=localhost DB_USER=user DB_PASS=pass go test ./....

  • bulk test bulk insert and update
  • zeroes test zero values for various SQL types

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Host string
	Port int
	Name string
	User string
	Pass string

	Schema string

	*sql.DB
}

DB stores the connection information of a database.

func LoadDB

func LoadDB() (*DB, error)

LoadDB loads database information from the environment.

func (*DB) Drop

func (db *DB) Drop() error

func (*DB) Up

func (db *DB) Up() error

Directories

Path Synopsis
bulk
zeros

Jump to

Keyboard shortcuts

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