Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { DB() *sql.DB PingContext(ctx context.Context) error ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) QueryRowContext(ctx context.Context, query string, args ...interface{}) Row }
func NewPostgres ¶
type DBMock ¶
func (*DBMock) ExecContext ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func (*Postgres) ExecContext ¶
type ResultMock ¶
func (*ResultMock) LastInsertId ¶
func (m *ResultMock) LastInsertId() (int64, error)
func (*ResultMock) RowsAffected ¶
func (m *ResultMock) RowsAffected() (int64, error)
Click to show internal directories.
Click to hide internal directories.