Documentation ¶
Index ¶
- func ParseRows(rows *sqlx.Rows) (results []contracts.Fields, err error)
- func ParseRowsToCollection(rows *sqlx.Rows) (contracts.Collection[contracts.Fields], error)
- func SetColVarType(colVar *[]any, i int, typeName string)
- func SetResultValue(result *map[string]any, index string, colVar any, typeName string)
- type BaseExecutor
- func (base *BaseExecutor) DriverName() string
- func (base *BaseExecutor) Exec(query string, args ...any) (result contracts.Result, exception contracts.Exception)
- func (base *BaseExecutor) Get(dest any, query string, args ...any) (err contracts.Exception)
- func (base *BaseExecutor) Query(query string, args ...any) (results contracts.Collection[contracts.Fields], exception contracts.Exception)
- func (base *BaseExecutor) Select(dest any, query string, args ...any) (err contracts.Exception)
- type Executor
- type SqlxExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRowsToCollection ¶
func SetColVarType ¶ added in v0.1.10
Types ¶
type BaseExecutor ¶
type BaseExecutor struct {
// contains filtered or unexported fields
}
func (*BaseExecutor) DriverName ¶
func (base *BaseExecutor) DriverName() string
type Executor ¶
type Executor interface { DriverName() string Query(query string, args ...any) (contracts.Collection[contracts.Fields], contracts.Exception) Get(dest any, query string, args ...any) (err contracts.Exception) Select(dest any, query string, args ...any) (err contracts.Exception) Exec(query string, args ...any) (contracts.Result, contracts.Exception) }
func NewExecutor ¶
func NewExecutor(executor SqlxExecutor, dispatcher contracts.EventDispatcher, wrapper func(sql string) string) Executor
Click to show internal directories.
Click to hide internal directories.