sqlite

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: GPL-3.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupSqlite

func SetupSqlite(cfg *config.ServerConfiguration) (types.Storage, error)

Types

type Sqlite3Storage

type Sqlite3Storage struct {
	Db      *sql.DB
	Querier strggen.Querier
}

func (*Sqlite3Storage) CreateFoodLogEntry

func (p *Sqlite3Storage) CreateFoodLogEntry(ctx context.Context, arg types.CreateFoodLogEntryParams) (*uuid.UUID, error)

CreateFoodLogEntry implements types.Storage.

func (*Sqlite3Storage) DeleteFoodLogEntry

func (p *Sqlite3Storage) DeleteFoodLogEntry(ctx context.Context, arg types.DeleteFoodLogEntryParams) error

DeleteFoodLogEntry implements types.Storage.

func (*Sqlite3Storage) ExportFoodLogEntries

func (p *Sqlite3Storage) ExportFoodLogEntries(ctx context.Context, userID string) ([]types.UserFoodlogentry, error)

ExportFoodLogEntries implements types.Storage.

func (*Sqlite3Storage) GetFoodLogEntry

GetFoodLogEntry implements types.Storage.

func (*Sqlite3Storage) GetTestData

func (p *Sqlite3Storage) GetTestData(ctx context.Context) (*string, error)

GetTestData implements types.Storage.

func (*Sqlite3Storage) GetUserConfig

GetUserConfig implements types.Storage.

func (*Sqlite3Storage) PurgeFoodLogEntries

func (p *Sqlite3Storage) PurgeFoodLogEntries(ctx context.Context, userID string) error

PurgeFoodLogEntries implements types.Storage.

func (*Sqlite3Storage) QueryFoodLogEntries

QueryFoodLogEntries implements types.Storage.

func (*Sqlite3Storage) StoreUserConfig

func (p *Sqlite3Storage) StoreUserConfig(ctx context.Context, arg types.StoreUserConfigParams) error

StoreUserConfig implements types.Storage.

func (*Sqlite3Storage) UpdateFoodLogEntry

func (p *Sqlite3Storage) UpdateFoodLogEntry(ctx context.Context, arg types.UpdateFoodLogEntryParams) error

UpdateFoodLogEntry implements types.Storage.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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