sqlstub

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sqlstub opens a database/sql pool over a stub driver that answers every query with one row holding one fixed value. Unit tests use it to get a real *sql.Rows without a database server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(v driver.Value) *sql.DB

Open returns a pool whose every query yields one row with one column, "c", holding v. v must be a valid driver.Value (string, int64, []byte, ...).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL