internalExecutor

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InternalExecutor

type InternalExecutor interface {
	// exec sql without returning results set
	Exec(string, SessionOverrideOptions) error
	// override session for the executor scope
	ApplySessionOverride(SessionOverrideOptions)
}

type OptsBuilder

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

func NewOptsBuilder

func NewOptsBuilder() *OptsBuilder

func (*OptsBuilder) Database

func (s *OptsBuilder) Database(db string) *OptsBuilder

func (*OptsBuilder) Finish

func (s *OptsBuilder) Finish() SessionOverrideOptions

func (*OptsBuilder) Internal

func (s *OptsBuilder) Internal(b bool) *OptsBuilder

func (*OptsBuilder) Username

func (s *OptsBuilder) Username(name string) *OptsBuilder

type SessionOverrideOptions

type SessionOverrideOptions struct {
	Database   *string
	Username   *string
	IsInternal *bool
}

Jump to

Keyboard shortcuts

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