Documentation ¶
Index ¶
- func CheckExist(executor Executor, executeParams *sql_tpl.CheckExistExecuteParams) (bool, error)
- func CheckHasOnlyOne(executor Executor, executeParams *sql_tpl.CheckHasOnlyOneExecuteParams) (bool, error)
- func Count(executor Executor, executeParams *sql_tpl.CountExecuteParams) (int64, error)
- func Delete(executor Executor, executeParams *sql_tpl.DeleteExecuteParams) error
- func DeleteEntity[T any](executor Executor, tableName string, e T) error
- func ExecuteRawSql(executor Executor, sql string, executeParams map[string]any) ([]sdk.SqlResult, error)
- func ExecuteSql(executor Executor, name string, executeParams map[string]any) ([]sdk.SqlResult, error)
- func Insert(executor Executor, executeParams *sql_tpl.InsertExecuteParams) error
- func InsertBatch(executor Executor, executeParams *sql_tpl.InsertBatchExecuteParams) error
- func InsertEntity[T any](executor Executor, tableName string, e T) error
- func ParseSqlResult[T any](input any) (T, error)
- func Query(executor Executor, executeParams *sql_tpl.QueryExecuteParams) ([]sdk.SqlResult, int64, error)
- func QueryOne(executor Executor, executeParams *sql_tpl.QueryOneExecuteParams) (sdk.SqlResult, error)
- func Update(executor Executor, executeParams *sql_tpl.UpdateExecuteParams) error
- func UpdateEntity[T any](executor Executor, tableName string, e T) error
- type Executor
- type Mapping
- type MappingColumn
- type Result
- type ResultColumn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckExist ¶
func CheckExist(executor Executor, executeParams *sql_tpl.CheckExistExecuteParams) (bool, error)
func CheckHasOnlyOne ¶
func CheckHasOnlyOne(executor Executor, executeParams *sql_tpl.CheckHasOnlyOneExecuteParams) (bool, error)
func Count ¶
func Count(executor Executor, executeParams *sql_tpl.CountExecuteParams) (int64, error)
func ExecuteRawSql ¶
func ExecuteSql ¶
func InsertBatch ¶ added in v0.9.0
func InsertBatch(executor Executor, executeParams *sql_tpl.InsertBatchExecuteParams) error
func ParseSqlResult ¶ added in v0.7.0
Types ¶
type Mapping ¶ added in v0.6.1
func ParseSqlMappingTag ¶ added in v0.8.0
type MappingColumn ¶ added in v0.6.1
type Result ¶ added in v0.7.0
func ParseSqlResultTag ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.