source

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	RawText string
	Version int
}

type Project

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

func NewProject

func NewProject(ctx context.Context, rootPath string, bqClient bigquery.Client, logger *logrus.Logger) *Project

func NewProjectWithBQClient

func NewProjectWithBQClient(rootPath string, bqClient bigquery.Client, logger *logrus.Logger) *Project

func (*Project) Close

func (p *Project) Close() error

func (*Project) Complete

func (p *Project) Complete(ctx context.Context, uri lsp.DocumentURI, position lsp.Position) ([]completion.CompletionItem, error)

func (*Project) DeleteFile

func (p *Project) DeleteFile(uri lsp.DocumentURI)

func (*Project) Dryrun

func (p *Project) Dryrun(ctx context.Context, uri lsp.DocumentURI) (*bq.JobStatus, error)

func (*Project) GetErrors

func (p *Project) GetErrors(uri lsp.DocumentURI) map[lsp.DocumentURI][]file.Error

func (*Project) GetFile

func (p *Project) GetFile(uri lsp.DocumentURI) (string, bool)

func (*Project) GetJobInfo

func (p *Project) GetJobInfo(ctx context.Context, projectID, jobID, location string) ([]lsp.MarkedString, *bq.RowIterator, error)

func (*Project) GetTableInfo

func (p *Project) GetTableInfo(ctx context.Context, projectID, datasetID, tableID string) ([]lsp.MarkedString, *bq.RowIterator, error)

func (*Project) GetTablePreview

func (p *Project) GetTablePreview(ctx context.Context, projectID, datasetID, tableID string) (*bq.RowIterator, error)

func (*Project) LookupIdent

func (p *Project) LookupIdent(ctx context.Context, uri lsp.DocumentURI, position lsp.Position) ([]lsp.Location, error)

func (*Project) ResolveCompletionItem

func (p *Project) ResolveCompletionItem(ctx context.Context, item lsp.CompletionItem) (lsp.CompletionItem, error)

func (*Project) Run

func (*Project) TermDocument

func (p *Project) TermDocument(ctx context.Context, uri lsp.DocumentURI, position lsp.Position) ([]lsp.MarkedString, error)

func (*Project) UpdateFile

func (p *Project) UpdateFile(uri lsp.DocumentURI, text string, version int) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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