hnypop

package
Version: v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 8

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 added in v0.4.10

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 added in v0.4.10

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 added in v0.4.10

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 added in v0.4.10

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 added in v0.4.10

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 added in v0.4.10

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

func (*DB) TransactionContextOptions added in v0.10.0

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL