Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlbackend

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISQLBackend

type ISQLBackend interface {
	HandleSimpleQuery(context.Context, string) (sqldata.ISQLResultStream, error)
	SplitCompoundQuery(string) ([]string, error)
}

func NewSimpleSQLBackend

func NewSimpleSQLBackend(simpleCallback QueryCallback) ISQLBackend

type QueryCallback

type QueryCallback func(context.Context, string) (sqldata.ISQLResultStream, error)

type SimpleSQLBackend

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

func (*SimpleSQLBackend) HandleSimpleQuery

func (sb *SimpleSQLBackend) HandleSimpleQuery(ctx context.Context, query string) (sqldata.ISQLResultStream, error)

func (*SimpleSQLBackend) SplitCompoundQuery

func (sb *SimpleSQLBackend) SplitCompoundQuery(s string) ([]string, error)

Jump to

Keyboard shortcuts

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