catalogs

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCatalogNotFound = errors.New("catalog not found")

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	// contains filtered or unexported fields
}

func NewCatalog

func NewCatalog(ctx context.Context, name, prefix string, engine engines.Engine, source sources.Source, readOnly bool) (*Catalog, error)

func (*Catalog) Name

func (c *Catalog) Name() string

func (*Catalog) Reload

func (c *Catalog) Reload(ctx context.Context) error

func (*Catalog) Schema

func (c *Catalog) Schema() *ast.Schema

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New() *Service

func (*Service) AddCatalog

func (s *Service) AddCatalog(ctx context.Context, name string, c *Catalog) error

func (*Service) AddExtension

func (s *Service) AddExtension(ctx context.Context, name string, source sources.Source) error

func (*Service) CatalogSchema

func (s *Service) CatalogSchema(name string) (*ast.Schema, error)

func (*Service) Engine

func (s *Service) Engine(name string) (engines.Engine, error)

func (*Service) ExistsCatalog

func (s *Service) ExistsCatalog(name string) bool

func (*Service) ExistsExtension

func (s *Service) ExistsExtension(name string) bool

func (*Service) RebuildSchema

func (s *Service) RebuildSchema(ctx context.Context) error

func (*Service) Reload

func (s *Service) Reload(ctx context.Context, name string) error

func (*Service) RemoveCatalog

func (s *Service) RemoveCatalog(ctx context.Context, name string) error

func (*Service) RemoveExtension

func (s *Service) RemoveExtension(ctx context.Context, name string) error

func (*Service) Schema

func (s *Service) Schema() *ast.Schema

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL