handler

package
v0.0.0-...-21d2cc0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapCall

func WrapCall(call *core.Call) *callWrap

func WrapCalls

func WrapCalls(calls []*core.Call) []*callWrap

func WrapColumn

func WrapColumn(column *core.Column) *columnWrap

func WrapColumns

func WrapColumns(columns []*core.Column) []*columnWrap

func WrapConnection

func WrapConnection(connection *core.Connection) *connectionWrap

func WrapConnectionParams

func WrapConnectionParams(params *core.ConnectionParams) *connectionParamsWrap

func WrapConnections

func WrapConnections(connections []*core.Connection) []*connectionWrap

func WrapStructure

func WrapStructure(structure *core.Structure) *structureWrap

func WrapStructures

func WrapStructures(structures []*core.Structure) []*structureWrap

Types

type Buffer

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

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (int, error)

type Handler

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

func New

func New(vim *nvim.Nvim, logger *plugin.Logger) *Handler

func (*Handler) AddHelpers

func (h *Handler) AddHelpers(typ string, helpers map[string]string) error

func (*Handler) CallCancel

func (h *Handler) CallCancel(callID core.CallID) error

func (*Handler) CallDisplayResult

func (h *Handler) CallDisplayResult(callID core.CallID, buffer nvim.Buffer, from, to int) (int, error)

func (*Handler) CallStoreResult

func (h *Handler) CallStoreResult(callID core.CallID, fmat, out string, from, to int, arg ...any) error

func (*Handler) Close

func (h *Handler) Close()

func (*Handler) ConnectionExecute

func (h *Handler) ConnectionExecute(connID core.ConnectionID, query string) (*core.Call, error)

func (*Handler) ConnectionGetCalls

func (h *Handler) ConnectionGetCalls(connID core.ConnectionID) ([]*core.Call, error)

func (*Handler) ConnectionGetColumns

func (h *Handler) ConnectionGetColumns(connID core.ConnectionID, opts *core.TableOptions) ([]*core.Column, error)

func (*Handler) ConnectionGetHelpers

func (h *Handler) ConnectionGetHelpers(connID core.ConnectionID, opts *core.TableOptions) (map[string]string, error)

func (*Handler) ConnectionGetParams

func (h *Handler) ConnectionGetParams(connID core.ConnectionID) (*core.ConnectionParams, error)

func (*Handler) ConnectionGetStructure

func (h *Handler) ConnectionGetStructure(connID core.ConnectionID) ([]*core.Structure, error)

func (*Handler) ConnectionListDatabases

func (h *Handler) ConnectionListDatabases(connID core.ConnectionID) (current string, available []string, err error)

func (*Handler) ConnectionSelectDatabase

func (h *Handler) ConnectionSelectDatabase(connID core.ConnectionID, database string) error

func (*Handler) CreateConnection

func (h *Handler) CreateConnection(params *core.ConnectionParams) (core.ConnectionID, error)

func (*Handler) DeleteConnection

func (h *Handler) DeleteConnection(id core.ConnectionID) error

func (*Handler) GetConnections

func (h *Handler) GetConnections(ids []core.ConnectionID) []*core.Connection

func (*Handler) GetCurrentConnection

func (h *Handler) GetCurrentConnection() (*core.Connection, error)

func (*Handler) SetCurrentConnection

func (h *Handler) SetCurrentConnection(connID core.ConnectionID) error

type Table

type Table struct{}

func (*Table) Format

func (tf *Table) Format(header core.Header, rows []core.Row, opts *core.FormatterOptions) ([]byte, error)

type YankRegister

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

func (*YankRegister) Write

func (yr *YankRegister) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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