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)
Click to show internal directories.
Click to hide internal directories.