Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
Binding represents the Ruby Binding struct.
func NewBinding ¶
NewBinding is a constructor function for Binding.
type ParsedQueries ¶
type ParsedQueries []*ParsedQuery
func Load ¶
func Load(glob string) (ParsedQueries, error)
func NewParsedQueries ¶
func NewParsedQueries(queries []*ParsedQuery) ParsedQueries
func (ParsedQueries) Range ¶
func (pqs ParsedQueries) Range(f func(pq *ParsedQuery))
Range allows you to iterate over each of the parsed queries.
func (ParsedQueries) Validate ¶
func (pqs ParsedQueries) Validate() error
Validate checks if any query name appears more than once and raises an error if it does.
type ParsedQuery ¶
func NewParsedQuery ¶
func NewParsedQuery(name, queryType, sql, filename string, line int) *ParsedQuery
func (*ParsedQuery) Bindings ¶
func (pq *ParsedQuery) Bindings() []*Binding
func (*ParsedQuery) Prepared ¶
func (pq *ParsedQuery) Prepared() bool
Click to show internal directories.
Click to hide internal directories.