examples

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package examples provides some common code for sqlh examples and tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(e Example) (DB *sql.DB, err error)

Connect creates a sqlmock DB and configures it for the example.

Types

type Example

type Example int

Example is a specific example.

const (
	ExSimpleMapper Example = iota
	ExTags
	ExNestedStruct
	ExNestedTwice
	ExScalar
	ExScalarSlice
	ExStruct
)

Jump to

Keyboard shortcuts

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