sqlite

package
v0.0.0-...-fe759f9 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sqlite

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

func NewSqlite

func NewSqlite(connectionString string) (*Sqlite, error)

func (*Sqlite) DeleteRecord

func (s *Sqlite) DeleteRecord(name string) error

DeleteRecord removes record by name.

func (*Sqlite) GetRecord

func (s *Sqlite) GetRecord(name string) (res models.Record, err error)

GetRecord returns a record by its name.

func (*Sqlite) GetUserRecords

func (s *Sqlite) GetUserRecords(user string) (res []models.Record, err error)

GetUserRecords returns all records for the given user.

func (*Sqlite) SaveRecord

func (s *Sqlite) SaveRecord(record models.Record) error

SaveRecord adds a new record to the journal.

Jump to

Keyboard shortcuts

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