Documentation ¶
Overview ¶
Package hnypop wraps the gobuffalo/pop ORM.
Summary ¶
hnypop provides a minimal implementation of the pop Store interface. There are a few flaws - when starting a pop Transaction, you'll get a Honeycomb event for the start of the transaction but none of the incremental statements.
Most other operations should come through ok.
Index ¶
- type DB
- func (m *DB) Close() error
- func (m *DB) Commit() error
- func (m *DB) Exec(query string, args ...interface{}) (sql.Result, error)
- func (m *DB) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (m *DB) Get(dest interface{}, query string, args ...interface{}) error
- func (m *DB) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (m *DB) NamedExec(query string, arg interface{}) (sql.Result, error)
- func (m *DB) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)
- func (m *DB) PrepareNamed(query string) (*sqlx.NamedStmt, error)
- func (m *DB) PrepareNamedContext(ctx context.Context, query string) (*sqlx.NamedStmt, error)
- func (m *DB) Rollback() error
- func (m *DB) Select(dest interface{}, query string, args ...interface{}) error
- func (m *DB) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (m *DB) Transaction() (*pop.Tx, error)
- func (m *DB) TransactionContext(ctx context.Context) (*pop.Tx, error)
- func (m *DB) TransactionContextOptions(ctx context.Context, options *sql.TxOptions) (*pop.Tx, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) ExecContext ¶ added in v0.4.10
func (*DB) GetContext ¶ added in v0.4.10
func (*DB) NamedExecContext ¶ added in v0.4.10
func (*DB) PrepareNamedContext ¶ added in v0.4.10
func (*DB) SelectContext ¶ added in v0.4.10
func (*DB) Transaction ¶
func (*DB) TransactionContext ¶ added in v0.4.10
Click to show internal directories.
Click to hide internal directories.