sql

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	ID         uint   `gorm:"primary_key"`
	JournalUID string `gorm:"index:journal_uid;not null"`
	*api.Entry
}

type Store

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

func NewStore

func NewStore(driver, dsn string) (*Store, error)

func (*Store) Close

func (s *Store) Close()

func (*Store) CreateEntry

func (s *Store) CreateEntry(j string, e *api.Entry) error

func (*Store) GetEntries

func (s *Store) GetEntries(j string) (api.Entries, error)

func (*Store) GetEntry

func (s *Store) GetEntry(j string, uid string) (*api.Entry, error)

func (*Store) LastEntry

func (s *Store) LastEntry(j string) (*api.Entry, error)

func (*Store) Migrate

func (s *Store) Migrate() error

Jump to

Keyboard shortcuts

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