sqlxcache

package module
v0.0.0-...-dbb0e34 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

README

sqlxcache

A statement-caching wrapper around Jason Moiron's sqlx.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func New

func New(db *sqlx.DB) *Cache

func Open

func Open(driverName, dataSourceName string) (*Cache, error)

func (*Cache) Begin

func (c *Cache) Begin() (*Tx, error)

func (*Cache) BeginTx

func (c *Cache) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) DB

func (c *Cache) DB() *sqlx.DB

func (*Cache) Exec

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

func (*Cache) ExecContext

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

func (*Cache) Get

func (c *Cache) Get(dest interface{}, query string, args ...interface{}) error

func (*Cache) GetContext

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

func (*Cache) NamedExec

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

func (*Cache) NamedExecContext

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

func (*Cache) NamedGet

func (c *Cache) NamedGet(dest interface{}, query string, arg interface{}) error

func (*Cache) NamedGetContext

func (c *Cache) NamedGetContext(ctx context.Context, dest interface{}, query string, arg interface{}) error

func (*Cache) NamedQuery

func (c *Cache) NamedQuery(query string, arg interface{}) (*sql.Rows, error)

func (*Cache) NamedQueryContext

func (c *Cache) NamedQueryContext(ctx context.Context, query string, arg interface{}) (*sql.Rows, error)

func (*Cache) NamedQueryRow

func (c *Cache) NamedQueryRow(query string, arg interface{}) (*sqlx.Row, error)

func (*Cache) NamedQueryRowContext

func (c *Cache) NamedQueryRowContext(ctx context.Context, query string, arg interface{}) (*sqlx.Row, error)

func (*Cache) NamedSelect

func (c *Cache) NamedSelect(dest interface{}, query string, arg interface{}) error

func (*Cache) NamedSelectContext

func (c *Cache) NamedSelectContext(ctx context.Context, dest interface{}, query string, arg interface{}) error

func (*Cache) Query

func (c *Cache) Query(query string, args ...interface{}) (*sql.Rows, error)

func (*Cache) QueryContext

func (c *Cache) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

func (*Cache) QueryRow

func (c *Cache) QueryRow(query string, args ...interface{}) (*sql.Row, error)

func (*Cache) QueryRowContext

func (c *Cache) QueryRowContext(ctx context.Context, query string, args ...interface{}) (*sql.Row, error)

func (*Cache) QueryRowxContext

func (c *Cache) QueryRowxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Row, error)

func (*Cache) Queryx

func (c *Cache) Queryx(query string, args ...interface{}) (*sqlx.Rows, error)

func (*Cache) QueryxContext

func (c *Cache) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)

func (*Cache) QueryxRow

func (c *Cache) QueryxRow(query string, args ...interface{}) (*sqlx.Row, error)

func (*Cache) Select

func (c *Cache) Select(dest interface{}, query string, args ...interface{}) error

func (*Cache) SelectContext

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

type Tx

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

func (*Tx) Commit

func (tx *Tx) Commit() error

func (*Tx) Exec

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

func (*Tx) ExecContext

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

func (*Tx) Get

func (tx *Tx) Get(dest interface{}, query string, args ...interface{}) error

func (*Tx) GetContext

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

func (*Tx) NamedExec

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

func (*Tx) NamedExecContext

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

func (*Tx) NamedGet

func (tx *Tx) NamedGet(dest interface{}, query string, arg interface{}) error

func (*Tx) NamedGetContext

func (tx *Tx) NamedGetContext(ctx context.Context, dest interface{}, query string, arg interface{}) error

func (*Tx) NamedQuery

func (tx *Tx) NamedQuery(query string, arg interface{}) (*sql.Rows, error)

func (*Tx) NamedQueryContext

func (tx *Tx) NamedQueryContext(ctx context.Context, query string, arg interface{}) (*sql.Rows, error)

func (*Tx) NamedQueryRow

func (tx *Tx) NamedQueryRow(query string, arg interface{}) (*sqlx.Row, error)

func (*Tx) NamedQueryRowContext

func (tx *Tx) NamedQueryRowContext(ctx context.Context, query string, arg interface{}) (*sqlx.Row, error)

func (*Tx) NamedQueryx

func (tx *Tx) NamedQueryx(query string, arg interface{}) (*sqlx.Rows, error)

func (*Tx) NamedQueryxContext

func (tx *Tx) NamedQueryxContext(ctx context.Context, query string, arg interface{}) (*sqlx.Rows, error)

func (*Tx) NamedSelect

func (tx *Tx) NamedSelect(dest interface{}, query string, arg interface{}) error

func (*Tx) NamedSelectContext

func (tx *Tx) NamedSelectContext(ctx context.Context, dest interface{}, query string, arg interface{}) error

func (*Tx) Query

func (tx *Tx) Query(query string, args ...interface{}) (*sql.Rows, error)

func (*Tx) QueryContext

func (tx *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

func (*Tx) QueryRowxContext

func (tx *Tx) QueryRowxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Row, error)

func (*Tx) Queryx

func (tx *Tx) Queryx(query string, args ...interface{}) (*sqlx.Rows, error)

func (*Tx) QueryxContext

func (tx *Tx) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)

func (*Tx) QueryxRow

func (tx *Tx) QueryxRow(query string, args ...interface{}) (*sqlx.Row, error)

func (*Tx) Rollback

func (tx *Tx) Rollback() error

func (*Tx) Select

func (tx *Tx) Select(dest interface{}, query string, args ...interface{}) error

func (*Tx) SelectContext

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

func (*Tx) Tx

func (tx *Tx) Tx() *sqlx.Tx

Jump to

Keyboard shortcuts

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