perfgolang.org/x/perf/storage/db/dbtest Index | Files

package dbtest

import "golang.org/x/perf/storage/db/dbtest"

Index

Functions

func NewDB

func NewDB(t *testing.T) (*db.DB, func())

NewDB makes a connection to a testing database, either sqlite3 or Cloud SQL depending on the -cloud flag. cleanup must be called when done with the testing database, instead of calling db.Close()

Source Files

dbtest.go nocloud.go

Version
v0.0.0-20250214215153-c95ad7d5b636 (latest)
Published
Feb 14, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
1 week ago

Tools for package owners.