sqlmesh

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectAuditLog added in v0.2.3

func CollectAuditLog(output *sqlmeshv1.IngestExecutionRequest, filename string) error

func CollectMetadata

func CollectMetadata(url url.URL, fileContentGlobFilter GlobFilter) (*ingestsqlmeshv1.IngestMetadataRequest, error)

func ModelNames

func ModelNames(models json.RawMessage) ([]string, error)

func NewSQLMeshMetadata added in v0.2.1

func NewSQLMeshMetadata() *ingestsqlmeshv1.IngestMetadataRequest

func WaitForSQLMeshToStart added in v0.2.1

func WaitForSQLMeshToStart(url url.URL)

Types

type Api

type Api interface {
	GetMeta() (json.RawMessage, error)
	GetModels() (json.RawMessage, error)
	GetModel(modelName string) (json.RawMessage, error)
	GetLineage(modelName string) (json.RawMessage, error)
	GetEnvironments() (json.RawMessage, error)
	GetFiles() (json.RawMessage, error)
	GetFileContent(filePath string) (json.RawMessage, error)
	Health() (json.RawMessage, error)
}

func NewAPIClient

func NewAPIClient(url url.URL) Api

type ApiImpl

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

func (ApiImpl) GetEnvironments

func (a ApiImpl) GetEnvironments() (json.RawMessage, error)

func (ApiImpl) GetFileContent added in v0.2.2

func (a ApiImpl) GetFileContent(filePath string) (json.RawMessage, error)

func (ApiImpl) GetFiles

func (a ApiImpl) GetFiles() (json.RawMessage, error)

func (ApiImpl) GetLineage

func (a ApiImpl) GetLineage(modelName string) (json.RawMessage, error)

func (ApiImpl) GetMeta

func (a ApiImpl) GetMeta() (json.RawMessage, error)

func (ApiImpl) GetModel

func (a ApiImpl) GetModel(modelName string) (json.RawMessage, error)

func (ApiImpl) GetModels

func (a ApiImpl) GetModels() (json.RawMessage, error)

func (ApiImpl) Health

func (a ApiImpl) Health() (json.RawMessage, error)

type Directory added in v0.2.2

type Directory struct {
	Name        string      `json:"name"`
	Path        string      `json:"path"`
	Directories []Directory `json:"directories,omitempty"`
	Files       []File      `json:"files,omitempty"`
}

type File added in v0.2.2

type File struct {
	Name      string  `json:"name"`
	Path      string  `json:"path"`
	Extension *string `json:"extension,omitempty"`
	Content   *string `json:"content,omitempty"`
}

type GlobFilter added in v0.2.2

type GlobFilter interface {
	Match(string) (bool, error)
}

func NewExcludeEverythingGlobFilter added in v0.2.2

func NewExcludeEverythingGlobFilter() GlobFilter

func NewGlobFilter added in v0.2.2

func NewGlobFilter(includePattern string, excludePattern string) GlobFilter

type GlobFilterImpl added in v0.2.2

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

func (GlobFilterImpl) Match added in v0.2.2

func (g GlobFilterImpl) Match(s string) (bool, error)

Jump to

Keyboard shortcuts

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