statement

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 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 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) (driver.Rows, error)
}

type FireboltResult

type FireboltResult struct {
}

func (FireboltResult) LastInsertId

func (r FireboltResult) LastInsertId() (int64, error)

LastInsertId returns last inserted ID, not supported by firebolt

func (FireboltResult) RowsAffected

func (r FireboltResult) RowsAffected() (int64, error)

RowsAffected returns a number of affected rows, not supported by firebolt

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