testdb

package
v0.0.0-...-1dc6284 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

testdb contains helper functions for testing mysql storage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(ctx context.Context, testDB *sql.DB, name string)

func MySQLAvailable

func MySQLAvailable() error

MySQLAvailable indicates whether a default MySQL database is available.

func New

func New(ctx context.Context, schemaPath string) (*sql.DB, error)

NewDB creates an empty database with the given schema.

Types

This section is empty.

Jump to

Keyboard shortcuts

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