package testdb

import "github.com/google/monologue/storage/mysql/testdb"

testdb contains helper functions for testing mysql storage

Index

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.

Source Files

testdb.go

Version
v0.0.0-20230315160450-1dc62842925e (latest)
Published
Mar 15, 2023
Platform
linux/amd64
Imports
9 packages
Last checked
1 day ago

Tools for package owners.