sqllite

package
v0.0.0-...-ec14ce0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage CRUD interface.

func NewStorage

func NewStorage(db *sql.DB) *Storage

NewStorage creates an new instance of Storage.

func (*Storage) FetchRow

func (s *Storage) FetchRow(row interface{}, query string, value ...interface{}) error

FetchRow fetches data by the given ID and maps it into row.

func (*Storage) FetchRows

func (s *Storage) FetchRows(rows interface{}, query string, value ...interface{}) error

FetchRows runs the given query and maps its result into rows.

func (*Storage) InsertRow

func (s *Storage) InsertRow(query string, args ...interface{}) error

InsertRow inserts a row into the table.

func (*Storage) UpdateRow

func (s *Storage) UpdateRow(query string, value ...interface{}) error

UpdateRow updates given row.

Jump to

Keyboard shortcuts

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