Documentation
¶
Overview ¶
Package exportsql provides named SQL row sources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Definition struct {
Name string
Query string
Validate func(params any) error
ScopeInjector func(scope export.Scope, params any) (any, error)
}
Definition registers a named query.
type QuerySpec ¶
type QuerySpec struct {
Name string
Query string
Params any
Actor export.Actor
Scope export.Scope
Columns []export.Column
}
QuerySpec describes a named query execution.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry stores named query definitions.
func (*Registry) Register ¶
func (r *Registry) Register(def Definition) error
Register adds a named query definition.
Click to show internal directories.
Click to hide internal directories.