Documentation ¶ Index ¶ type Entry type Store func NewStore(driver, dsn string) (*Store, error) func (s *Store) Close() func (s *Store) CreateEntry(j string, e *api.Entry) error func (s *Store) GetEntries(j string) (api.Entries, error) func (s *Store) GetEntry(j string, uid string) (*api.Entry, error) func (s *Store) LastEntry(j string) (*api.Entry, error) func (s *Store) Migrate() error 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 Source Files ¶ View all Source files sql.go tables.go Click to show internal directories. Click to hide internal directories.