sqlite

package
v2.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 18, 2017 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryRepository

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

func NewEntryRepository

func NewEntryRepository(name string, db *sql.DB) *EntryRepository

func (*EntryRepository) Create

func (r *EntryRepository) Create(entry *core.Entry) error

func (*EntryRepository) CreateMany

func (r *EntryRepository) CreateMany(entries []*core.Entry) error

func (*EntryRepository) Delete

func (r *EntryRepository) Delete(entry *core.Entry) error

func (*EntryRepository) DeleteManyByName

func (r *EntryRepository) DeleteManyByName(names []string) error

func (*EntryRepository) FindOneByName

func (r *EntryRepository) FindOneByName(name string) (*core.Entry, error)

func (*EntryRepository) GetAll

func (r *EntryRepository) GetAll() (map[string]*core.Entry, error)

type SettingsRepository

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

func NewSettingsRepository

func NewSettingsRepository(name string, db *sql.DB) *SettingsRepository

func (*SettingsRepository) Get

func (r *SettingsRepository) Get() (*core.Settings, error)

func (*SettingsRepository) Set

func (r *SettingsRepository) Set(settings *core.Settings) error

Jump to

Keyboard shortcuts

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