Documentation ¶
Index ¶
Constants ¶
View Source
const (
StmtxInsertReturning = 128 + iota
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientData ¶
func (*ClientData) Destroy ¶
func (c *ClientData) Destroy()
type Converter ¶
type Converter interface {
Convert(nct *sql.ColumnType) (col *sqlv.Column, scan interface{})
}
var DefaultConverter Converter = DefaultConverterClass{}
type DefaultConverterClass ¶
type DefaultConverterClass struct{}
func (DefaultConverterClass) Convert ¶
func (DefaultConverterClass) Convert(nct *sql.ColumnType) (col *sqlv.Column, scan interface{})
type DefaultSpecialFeaturesClass ¶
type DefaultSpecialFeaturesClass struct{}
type DefaultSyntaxerClass ¶
type DefaultSyntaxerClass struct{}
func (DefaultSyntaxerClass) EncodeAny ¶
func (DefaultSyntaxerClass) EncodeAny(ast sqlparser.Statement) string
func (DefaultSyntaxerClass) EncodeInsert ¶
func (DefaultSyntaxerClass) EncodeInsert(ast sqlparser.Statement) string
func (DefaultSyntaxerClass) Preprocess ¶
func (DefaultSyntaxerClass) Preprocess(ast sqlparser.Statement, schema string)
type Gateway ¶
type Gateway struct { DB *sql.DB CC Converter Syn Syntaxer SF SpecialFeatures }
func (*Gateway) ConnectionClosed ¶
func (*Gateway) NewConnection ¶
type GenericDB ¶
type GenericDB interface { Exec(query string, args ...interface{}) (sql.Result, error) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) Prepare(query string) (*sql.Stmt, error) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) Query(query string, args ...interface{}) (*sql.Rows, error) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) QueryRow(query string, args ...interface{}) *sql.Row QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row }
Generic common subset of *sql.DB and *sql.Tx
Click to show internal directories.
Click to hide internal directories.