store

package
v0.0.0-...-dcd3a03 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(driver string, source string) (interfaces.Repository, error)

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) Execute

func (h *Handler) Execute(query string, args ...interface{}) (interfaces.Result, error)

func (*Handler) Query

func (h *Handler) Query(statement string) (interfaces.Rows, error)

func (*Handler) QueryRow

func (h *Handler) QueryRow(statement string, args ...interface{}) interfaces.Row

type SqlResult

type SqlResult struct {
	Result sql.Result
}

func (SqlResult) LastInsertId

func (r SqlResult) LastInsertId() (int64, error)

func (SqlResult) RowsAffected

func (r SqlResult) RowsAffected() (int64, error)

type SqlRow

type SqlRow struct {
	Row *sql.Row
}

func (SqlRow) Scan

func (r SqlRow) Scan(args ...interface{}) error

type SqlRows

type SqlRows struct {
	Rows *sql.Rows
}

func (SqlRows) Close

func (r SqlRows) Close() error

func (SqlRows) Next

func (r SqlRows) Next() bool

func (SqlRows) Scan

func (r SqlRows) Scan(args ...interface{}) error

Jump to

Keyboard shortcuts

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