Documentation
¶
Overview ¶
Package testutil provides database test utilities for integration tests. This package is intentionally separate from production code to prevent test infrastructure from being compiled into production binaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestDB ¶
CreateTestDB creates a fresh test database for integration tests. It creates a new database with a unique name based on the test name and returns the connection.
func QuoteIdentifier ¶
QuoteIdentifier quotes a string as a PostgreSQL identifier. It wraps the identifier in double quotes and escapes any internal double quotes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.