Documentation ¶
Overview ¶
Package fakedb provides a minimal fake implementation for a database/sql database, to be used in tests.
Index ¶
Constants ¶
View Source
const ( QueryNoRows = "SELECT 1 WHERE FALSE" QueryOneRow = "SELECT 1" QueryError = "INVALID QUERY" ErrorMsg = "invalid query" )
Queries supported by the fake database. Each query will return a different number of rows, but no actual content.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.