Documentation ¶
Index ¶
Constants ¶
View Source
const POSTGRES_DRIVER_TIMEOUT = 10
Variables ¶
View Source
var ErrProfiletMultipleRowsAffected = fmt.Errorf("more than one, row was affected in a single row operation")
View Source
var ErrProfiletMultipleRowsRetunred = fmt.Errorf("more than one, row was returned when was expected")
View Source
var ErrProfiletNotFound = fmt.Errorf("row not found")
Functions ¶
This section is empty.
Types ¶
type PostgresDriver ¶
func NewPostgresDriver ¶
func NewPostgresDriver(connectionUrl string, log *logrus.Logger) (*PostgresDriver, error)
func (*PostgresDriver) QueryRow ¶
func (pd *PostgresDriver) QueryRow(sqlStatement string, structure interface{}, args ...any) error
func (*PostgresDriver) QueryRows ¶
func (pd *PostgresDriver) QueryRows(sqlStatement string, structure interface{}, args ...any) error
func (*PostgresDriver) TransactOneRow ¶
func (pd *PostgresDriver) TransactOneRow(sqlStatement string, args ...any) error
Click to show internal directories.
Click to hide internal directories.