Documentation ¶
Index ¶
Constants ¶
View Source
const ( ShowNone = iota ShowEngines ShowDatabases ShowTables ShowColumns ShowWarnings ShowCharset )
Show statement types.
Variables ¶
This section is empty.
Functions ¶
func BindExecArgs ¶
BindExecArgs binds executive args to context.
func ClearExecArgs ¶
ClearExecArgs clears executive args from context.
func GetExecArgs ¶
GetExecArgs gets executive args from context.
Types ¶
type Statement ¶
type Statement interface { // Explain gets the execution plans. Explain(ctx context.Context, w format.Formatter) // IsDDL shows whether the statement is an DDL operation. IsDDL() bool // OriginText gets the origin SQL text. OriginText() string // SetText sets the executive SQL text. SetText(text string) // Exec executes SQL and gets a Recordset. Exec(ctx context.Context) (rset.Recordset, error) }
Statement is an interface for SQL execution. NOTE: all Statement implementations must be safe for concurrent using by multiple goroutines. If the Exec method requires any Execution domain local data, they must be held out of the implementing instance.
Click to show internal directories.
Click to hide internal directories.