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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	DB *hnysqlx.DB
	// contains filtered or unexported fields
}

func (*DB) Close

func (m *DB) Close() error

func (*DB) Commit

func (m *DB) Commit() error

func (*DB) Exec

func (m *DB) Exec(query string, args ...interface{}) (sql.Result, error)

func (*DB) ExecContext

func (m *DB) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

func (*DB) Get

func (m *DB) Get(dest interface{}, query string, args ...interface{}) error

func (*DB) GetContext

func (m *DB) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

func (*DB) NamedExec

func (m *DB) NamedExec(query string, arg interface{}) (sql.Result, error)

func (*DB) NamedExecContext

func (m *DB) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)

func (*DB) PrepareNamed

func (m *DB) PrepareNamed(query string) (*sqlx.NamedStmt, error)

func (*DB) PrepareNamedContext

func (m *DB) PrepareNamedContext(ctx context.Context, query string) (*sqlx.NamedStmt, error)

func (*DB) Rollback

func (m *DB) Rollback() error

func (*DB) Select

func (m *DB) Select(dest interface{}, query string, args ...interface{}) error

func (*DB) SelectContext

func (m *DB) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

func (*DB) Transaction

func (m *DB) Transaction() (*pop.Tx, error)

func (*DB) TransactionContext

func (m *DB) TransactionContext(ctx context.Context) (*pop.Tx, error)

func (*DB) TransactionContextOptions

func (m *DB) TransactionContextOptions(ctx context.Context, options *sql.TxOptions) (*pop.Tx, error)

Source Files