hnypop

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

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) Get

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

func (*DB) NamedExec

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

func (*DB) PrepareNamed

func (m *DB) PrepareNamed(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) Transaction

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

Jump to

Keyboard shortcuts

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