Documentation
¶
Overview ¶
Package datasource parses .datasource project files into model.Datasource values and persists them in the Redis-backed metadata registry (ADR 0001). The file format mirrors Tinybird's .datasource files byte-for-byte: a SCHEMA block of indented column lines followed by ENGINE/ENGINE_*/CONNECTOR directives (ADRs 0008, 0027).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a Redis-backed model.DatasourceRegistry. Each datasource is stored as JSON under "tr:ds:<name>".
func NewRegistry ¶
NewRegistry returns a Registry backed by rdb.
func (*Registry) Get ¶
Get returns the datasource named name. ok is false (with nil error) when no such key exists.
Click to show internal directories.
Click to hide internal directories.