Documentation
¶
Index ¶
Constants ¶
const ( CommandExecuteQuery = "bqls.executeQuery" CommandCancelQuery = "bqls.cancelQuery" CommandListDatasets = "bqls.listDatasets" CommandListTables = "bqls.listTables" CommandListJobHistories = "bqls.listJobHistories" CommandSaveResult = "bqls.saveResult" CommandSearchTables = "bqls.searchTables" CommandListProjects = "bqls.listProjects" )
Variables ¶
This section is empty.
Functions ¶
func ComputeEdits ¶
func ComputeEdits(uri lsp.DocumentURI, before, after string) []lsp.TextEdit
ComputeEdits computes diff edits from 2 string inputs
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) ExitNotify ¶ added in v0.8.0
ExitNotify delivers the process exit code once the client sends the exit notification: 0 if shutdown was received first, otherwise 1.
type InitializeOption ¶
type InitializeOption struct {
ProjectID string `json:"project_id"`
Location string `json:"location"`
// SupportsAsyncVirtualTextDocument declares that the client understands
// the bqls/publishVirtualTextDocument notification and can render a
// pending state. Clients that omit this (zero value: false) keep
// getting the fully-synchronous bqls/virtualTextDocument response.
SupportsAsyncVirtualTextDocument bool `json:"supports_async_virtual_text_document"`
Lint lint.Config `json:"lint"`
}
type OpKind ¶
type OpKind int
OpKind is used to denote the type of operation a line represents.
const ( // Delete is the operation kind for a line that is present in the input // but not in the output. Delete OpKind = iota // Insert is the operation kind for a line that is new in the output. Insert // Equal is the operation kind for a line that is the same in the input and // output, often used to provide context around edited lines. Equal )
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
bigquery/mock_bigquery
Package mock_bigquery is a generated GoMock package.
|
Package mock_bigquery is a generated GoMock package. |
|
function
Code generated by gen_builtin_function.go, DO NOT EDIT.
|
Code generated by gen_builtin_function.go, DO NOT EDIT. |
|
lint
Package lint provides a small analysis framework, modeled on golang.org/x/tools/go/analysis, for reporting style and correctness warnings on SQL that already analyzes without errors.
|
Package lint provides a small analysis framework, modeled on golang.org/x/tools/go/analysis, for reporting style and correctness warnings on SQL that already analyzes without errors. |
|
Package lintcli implements the `bqls lint` command, which reports the same diagnostics as the language server for SQL files on disk.
|
Package lintcli implements the `bqls lint` command, which reports the same diagnostics as the language server for SQL files on disk. |