Documentation
¶
Index ¶
- Constants
- func InName(i int, names []string) string
- func OutName(i int) string
- func StmtIdOf(id string) string
- type Config
- func (it *Config) AddNs(ns string, xml string)
- func (it *Config) AddPlugin(plugin Plugin)
- func (it *Config) AddRsMap(id string, rsMap RsMap)
- func (it *Config) AddStmt(stmt *Stmt)
- func (it *Config) Factory() *Factory
- func (it *Config) GetDB(id string) *sql.DB
- func (it *Config) GetNsXml(ns string) string
- func (it *Config) GetRsMap(id string) RsMap
- func (it *Config) GetStmt(id string) *Stmt
- func (it *Config) HasNs(ns string) bool
- func (it *Config) MainDB() *sql.DB
- func (it *Config) SetDB(id string, db *sql.DB) *Config
- func (it *Config) SetMainDB(db *sql.DB)
- type DBProxy
- type Factory
- type Hook
- type Keeper
- type Order
- type Payload
- type Plugin
- type Proxy
- type RsMap
- type Session
- type SetProxy
- type Stmt
- type StmtType
- type Target
Constants ¶
View Source
const NameSpace = "github.com/avicd/go-sqlx"
View Source
const SelectSetSuffix = "!SelectSet"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBProxy ¶
type DBProxy interface { PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row }
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func (*Factory) ResetKeeper ¶
func (it *Factory) ResetKeeper()
type Payload ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
type Stmt ¶
type Stmt struct { Id string Ns string DbId string SqlNode script.SqlNode Dynamic bool RsMaps []RsMap StmtType StmtType ArgNames []string KeyProps []string KeyColumns []string Target Target Bind string SetStmts []*Stmt // contains filtered or unexported fields }
func (*Stmt) ProxyOfField ¶
func (it *Stmt) ProxyOfField(tf reflect.StructField) *Proxy
Source Files
¶
Click to show internal directories.
Click to hide internal directories.