package testdb
import "github.com/google/monologue/storage/mysql/testdb"
testdb contains helper functions for testing mysql storage
Index ¶
- func Clean(ctx context.Context, testDB *sql.DB, name string)
- func MySQLAvailable() error
- func New(ctx context.Context, schemaPath string) (*sql.DB, error)
Functions ¶
func Clean ¶
func MySQLAvailable ¶
func MySQLAvailable() error
MySQLAvailable indicates whether a default MySQL database is available.
func New ¶
NewDB creates an empty database with the given schema.
Source Files ¶
- 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.