Documentation ¶
Index ¶
- type Postgres
- func (p *Postgres) DB() *sql.DB
- func (p *Postgres) InsertOrUpdateStruct(tableName string, data any, params ...any) (sql.Result, error)
- func (p *Postgres) Query(q string, fields any, params ...any) error
- func (p *Postgres) Row(q string, fields any, params ...any) error
- func (p *Postgres) SqlExec(query string, name string, params ...any) (map[string]any, sql.Result)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func (*Postgres) InsertOrUpdateStruct ¶
Click to show internal directories.
Click to hide internal directories.