Documentation
¶
Index ¶
- Variables
- func FetchColumnNames(db *sqlx.DB, tableName string) ([]string, error)
- func InsertStruct(db *sqlx.DB, tableName string, data any) error
- func InsertTrxStruct(db *sqlx.Tx, tableName string, data any) error
- func ParseRows(rows *sql.Rows, dest any) error
- func PostgresConn(options ...PostgresConnOptions) (*sqlx.DB, error)
- func RegisterType(fieldName string, sampleValue any)
- func UpdateStruct(db *sqlx.DB, tableName string, data any, conditionField string, ...) error
- func UpdateTrxStruct(db *sqlx.Tx, tableName string, data any, conditionField string, ...) error
- type PostgresConnOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var TypeRegistry = make(map[string]reflect.Type)
TypeRegistry maps any field names to their expected concrete types
Functions ¶
func InsertTrxStruct ¶ added in v1.8.69
func PostgresConn ¶
func PostgresConn(options ...PostgresConnOptions) (*sqlx.DB, error)
func RegisterType ¶ added in v1.15.11
func UpdateStruct ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.