Documentation
¶
Overview ¶
Package goyesql is a Go port of Yesql
It allows you to write SQL queries in separate files.
See rationale at https://github.com/krisajenkins/yesql#rationale
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTagMissing occurs when a query has no tag ErrTagMissing = errors.New("Query without tag") // ErrTagOverwritten occurs when a tag is overwritten by a new one ErrTagOverwritten = errors.New("Tag overwritten") )
Functions ¶
This section is empty.
Types ¶
type Queries ¶
Queries is a map associating a Tag to its Query
func MustParseBytes ¶
MustParseBytes parses bytes but panics if an error occurs.
func MustParseFile ¶
MustParseFile calls ParseFile but panic if an error occurs
func ParseBytes ¶
ParseBytes parses bytes and returns Queries or an error.
Click to show internal directories.
Click to hide internal directories.