Documentation ¶
Index ¶
- func FetchColumnNames(db *sqlx.DB, tableName string) ([]string, error)
- func InsertStruct(db *sqlx.DB, tableName string, data interface{}) error
- func ParseRows(rows *sql.Rows, dest interface{}) error
- func PostgresConn() (*sqlx.DB, error)
- func UpdateStruct(db *sqlx.DB, tableName string, data interface{}, conditionField string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertStruct ¶
InsertStruct inserts a struct's fields into the specified table.
func PostgresConn ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.