package
Version:
v0.23.0
Opens a new window with list of versions in this module.
Published: Aug 12, 2025
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package sqltest provides utilities for testing SQL databases.
View Source
const (
PostgresDSN = "postgres://postgres:secret@localhost:5432/zero-test?sslmode=disable"
)
NewForTesting creates a new database instance and driver for testing purposes.
It encapsulates the boilerplate around constructing a connection and driver.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.