Documentation ¶
Index ¶
- type Options
- type Query
- type Runtime
- func (r *Runtime) Catalog(ctx context.Context, instanceID string) (*catalog.Service, error)
- func (r *Runtime) Close() error
- func (r *Runtime) CreateInstance(ctx context.Context, inst *drivers.Instance) error
- func (r *Runtime) DeleteFile(ctx context.Context, instanceID, path string) error
- func (r *Runtime) DeleteInstance(ctx context.Context, instanceID string) error
- func (r *Runtime) FindInstance(ctx context.Context, instanceID string) (*drivers.Instance, error)
- func (r *Runtime) FindInstances(ctx context.Context) ([]*drivers.Instance, error)
- func (r *Runtime) GetCatalogEntry(ctx context.Context, instanceID, name string) (*drivers.CatalogEntry, error)
- func (r *Runtime) GetFile(ctx context.Context, instanceID, path string) (string, time.Time, error)
- func (r *Runtime) ListCatalogEntries(ctx context.Context, instanceID string, t drivers.ObjectType) ([]*drivers.CatalogEntry, error)
- func (r *Runtime) ListFiles(ctx context.Context, instanceID, glob string) ([]string, error)
- func (r *Runtime) OLAP(ctx context.Context, instanceID string) (drivers.OLAPStore, error)
- func (r *Runtime) PutFile(ctx context.Context, instanceID, path string, blob io.Reader, ...) error
- func (r *Runtime) Query(ctx context.Context, instanceID string, query Query, priority int) error
- func (r *Runtime) Reconcile(ctx context.Context, instanceID string, changedPaths, forcedPaths []string, ...) (*catalog.ReconcileResult, error)
- func (r *Runtime) RefreshSource(ctx context.Context, instanceID, name string) error
- func (r *Runtime) Registry() drivers.RegistryStore
- func (r *Runtime) RenameFile(ctx context.Context, instanceID, fromPath, toPath string) error
- func (r *Runtime) Repo(ctx context.Context, instanceID string) (drivers.RepoStore, error)
- func (r *Runtime) SyncExistingTables(ctx context.Context, instanceID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶ added in v0.16.0
type Query interface { // Key should return a cache key that uniquely identifies the query Key() string // Deps should return the source and model names that the query targets. // It's used to invalidate cached queries when the underlying data changes. Deps() []string // MarshalResult should return the query result for caching. // TODO: Also return estimated cost in bytes. MarshalResult() any // UnmarshalResult should populate a query with a cached result UnmarshalResult(v any) error // Resolve should execute the query against the instance's infra. // Error can be nil along with a nil result in general, i.e. when a model contains no rows aggregation results can be nil. Resolve(ctx context.Context, rt *Runtime, instanceID string, priority int) error }
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) CreateInstance ¶
func (*Runtime) DeleteFile ¶ added in v0.16.0
func (*Runtime) DeleteInstance ¶ added in v0.16.0
func (*Runtime) FindInstance ¶ added in v0.16.0
func (*Runtime) FindInstances ¶ added in v0.16.0
func (*Runtime) GetCatalogEntry ¶ added in v0.16.0
func (*Runtime) ListCatalogEntries ¶ added in v0.16.0
func (r *Runtime) ListCatalogEntries(ctx context.Context, instanceID string, t drivers.ObjectType) ([]*drivers.CatalogEntry, error)
func (*Runtime) RefreshSource ¶ added in v0.16.0
func (*Runtime) Registry ¶ added in v0.16.0
func (r *Runtime) Registry() drivers.RegistryStore
func (*Runtime) RenameFile ¶ added in v0.16.0
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
compilers
|
|
pkg
|
|
services
|
|
catalog/artifacts/yaml
Package yaml reads and writes artifacts that exactly mirror the internal representation
|
Package yaml reads and writes artifacts that exactly mirror the internal representation |
Click to show internal directories.
Click to hide internal directories.