Help us shape the future of Go! Take the 2026 Go Developer Survey

reservationdb

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package reservationdb owns isolated live MySQL/PostgreSQL acceptance fixtures. It never substitutes another product when a requested server is unavailable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	DB                  *sql.DB
	Driver, DSN, Schema string
}

func Join

func Join(t testing.TB, driver string) *Database

Join connects a subprocess to its parent's already-created fixture objects.

func Open

func Open(t testing.TB, driver string) *Database

func OpenTransient

func OpenTransient(t testing.TB) *Database

OpenTransient creates source fixtures without provisioning an allocator table.

func (*Database) Count

func (h *Database) Count(t testing.TB, table string) int

func (*Database) CreateRecords

func (h *Database) CreateRecords(t testing.TB)

func (*Database) Exec

func (h *Database) Exec(t testing.TB, statements ...string)

func (*Database) Other

func (h *Database) Other(t testing.TB) *sql.DB

func (*Database) Quote

func (h *Database) Quote(name string) string

func (*Database) SeedIDSQL

func (h *Database) SeedIDSQL(id int64) string

func (*Database) Table

func (h *Database) Table(name string) string

Jump to

Keyboard shortcuts

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