Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Rows ¶
func Rows(table string) *sqlmock.Rows
Rows converts MySQL/PostgreSQL table output to sql.Rows. All row values are parsed as text except the "nil" and NULL keywords. For example:
+-------------+-------------+-------------+----------------+ | column_name | column_type | is_nullable | column_default | +-------------+-------------+-------------+----------------+ | c1 | float | YES | nil | | c2 | int | YES | | | c3 | double | YES | NULL | +-------------+-------------+-------------+----------------+
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.