Versions in this module Expand all Collapse all v0 v0.7.0 Nov 2, 2026 Changes in this version + const DefaultMaxRows + const EnvLocal + const LocalTenant + const ManifestVersion + func Describe(path string, cfg *Config, reg *connections.Registry) ([]byte, error) + func KeyLine(key, tenant string) (string, error) + func Refuse(msg string) error + type After func(ctx context.Context, r *Result) (any, error) + type Auth struct + KeysFrom string + Type string + type Before func(ctx context.Context, r *Request) error + type ByteSize int64 + func (b *ByteSize) UnmarshalYAML(node *yaml.Node) error + func (b ByteSize) String() string + type CacheConfig struct + AddrFrom string + MaxEntry ByteSize + TTL time.Duration + Type string + type Config struct + Audit io.Writer + Cache *CacheConfig + CacheKV cache.KV + Connection string + ConnectionID string + Dialect dialect.Dialect + Endpoints []*Endpoint + Env string + Limits Limits + Listen Listen + MaxRows int + Metrics struct{ ... } + Name string + Open func(context.Context) (dialect.Conn, error) + Params map[string]Param + Timezone string + func Load(path string, reg *connections.Registry, hooks *Hooks) (*Config, error) + type Endpoint struct + Hook *HookNames + Limits *Limits + MaxRows int + Name string + Params map[string]Param + Path string + SQL string + SQLFile string + Template *render.Template + Tenant string + func (e *Endpoint) Reads() []string + type HookNames struct + After *string + Before *string + type Hooks struct + func NewHooks() *Hooks + func (h *Hooks) MustRegisterAfter(name string, fn After) + func (h *Hooks) MustRegisterBefore(name string, fn Before) + func (h *Hooks) RegisterAfter(name string, fn After) error + func (h *Hooks) RegisterBefore(name string, fn Before) error + type Limits struct + MaxBytesBilled ByteSize + MaxInFlight int + MaxResponseBytes ByteSize + MaxRows int + Timeout time.Duration + type Listen struct + Addr string + Auth *Auth + type Manifest struct + Cache *ManifestCache + Connection string + Dialect string + Endpoints []ManifestEndpoint + Kind string + Name string + Notes map[string]string + Version int + type ManifestCache struct + AddrFrom string + MaxEntry int64 + TTL string + Type string + type ManifestEndpoint struct + Limits ManifestLimits + Name string + Notes map[string]string + Params []ManifestParam + Path string + Reads []string + Tenant string + type ManifestLimits struct + MaxBytesBilled int64 + MaxRows int + Timeout string + type ManifestParam struct + Default *string + Max *int64 + MaxLen int + Min *int64 + Name string + Required bool + Type string + Values []string + type Param struct + Default *string + Max *int64 + MaxLen int + Min *int64 + Ref string + Required bool + Type string + Values []string + type Request struct + Endpoint string + Header http.Header + Query url.Values + Tenant string + type Result struct + Columns []string + Endpoint string + Params map[string]any + Rows [][]any + Tenant string + Truncated bool + type Server struct + func New(cfg *Config) (*Server, error) + func (s *Server) Keys() (keys, tenants int) + func (s *Server) Metrics() http.Handler + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)