Documentation
¶
Overview ¶
Credits to https://github.com/gchaincl/dotsql
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query struct { Name string Raw string OrdinalQuery string Mapping map[string]int NamedArgs []sql.NamedArg }
type QueryStore ¶
type QueryStore struct {
// contains filtered or unexported fields
}
func (*QueryStore) LoadFromDir ¶
func (s *QueryStore) LoadFromDir(path string) error
func (*QueryStore) LoadFromEmbed ¶
func (qs *QueryStore) LoadFromEmbed(sqlFS embed.FS, path string) error
func (*QueryStore) LoadFromFile ¶
func (s *QueryStore) LoadFromFile(fileName string) (err error)
LoadFromFile loads query/queries from specified file
func (*QueryStore) MustHaveQuery ¶
func (s *QueryStore) MustHaveQuery(name string) *Query
MustHaveQuery returns query or panics on error
Click to show internal directories.
Click to hide internal directories.