Documentation ¶
Index ¶
- func HardDeleteByID(conn *sqlx.DB, target string, id int64) (err error)
- func InsertInto(conn *sqlx.DB, target string, data RequestParameter) (interface{}, error)
- func SelectByID(conn *sqlx.DB, target string, id int64, data interface{}) error
- func SoftDeleteByID(conn *sqlx.DB, target string, id int64) (err error)
- func Update(conn *sqlx.DB, target string, writeData RequestParameter) (interface{}, error)
- type RequestParameter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HardDeleteByID ¶ added in v0.4.0
func InsertInto ¶
func InsertInto(conn *sqlx.DB, target string, data RequestParameter) (interface{}, error)
func SelectByID ¶ added in v0.4.0
func SoftDeleteByID ¶ added in v0.4.0
Types ¶
type RequestParameter ¶
type RequestParameter interface {
SQLParamsRequest() []string
}
Click to show internal directories.
Click to hide internal directories.