statement

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDisallowedParametersList

func GetDisallowedParametersList() []string

func GetNotPersistentParametersList added in v1.11.0

func GetNotPersistentParametersList() []string

func GetUseParametersList

func GetUseParametersList() []string

func MakeStmt

func MakeStmt(executor Executor, query string, style contextUtils.PreparedStatementsStyle) (*fireboltStmt, error)

Types

type Executor

type Executor interface {
	ExecutePreparedQueries(ctx context.Context, queries []PreparedQuery, args []driver.NamedValue, isQuery bool) (rows.ExtendableRowsWithResult, error)
}

type PreparedQuery

type PreparedQuery interface {
	GetNumParams() int
	Format(args []driver.NamedValue) (string, map[string]string, error)
	OnSuccess(control client.ConnectionControl)
}

type SetStatement

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

func (*SetStatement) Format

func (s *SetStatement) Format(args []driver.NamedValue) (string, map[string]string, error)

func (*SetStatement) GetNumParams

func (s *SetStatement) GetNumParams() int

func (*SetStatement) OnSuccess

func (s *SetStatement) OnSuccess(control client.ConnectionControl)

type SingleStatement

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

func (*SingleStatement) Format

func (s *SingleStatement) Format(args []driver.NamedValue) (string, map[string]string, error)

func (*SingleStatement) GetNumParams

func (s *SingleStatement) GetNumParams() int

func (*SingleStatement) OnSuccess

func (s *SingleStatement) OnSuccess(control client.ConnectionControl)

Jump to

Keyboard shortcuts

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