for_sqlite

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package for_sqlite provides a sqlite implementation of interfaces in huedb package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func ConnNew

func ConnNew(conn *sqlite.Conn) Store

func New

func New(db *sqlite_db.Db) Store

func (Store) AddEncodedAtTimeTask

func (s Store) AddEncodedAtTimeTask(
	t db.Transaction, task *huedb.EncodedAtTimeTask) error

func (Store) AddNamedColors

func (s Store) AddNamedColors(
	t db.Transaction, namedColors *ops.NamedColors) error

func (Store) ClearEncodedAtTimeTasks

func (s Store) ClearEncodedAtTimeTasks(t db.Transaction) error

func (Store) EncodedAtTimeTasks

func (s Store) EncodedAtTimeTasks(
	t db.Transaction,
	groupId string,
	consumer consume2.Consumer[huedb.EncodedAtTimeTask]) error

func (Store) NamedColors

func (s Store) NamedColors(
	t db.Transaction, consumer consume2.Consumer[ops.NamedColors]) error

func (Store) NamedColorsById

func (s Store) NamedColorsById(
	t db.Transaction, id int64, namedColors *ops.NamedColors) error

func (Store) RemoveEncodedAtTimeTaskByScheduleId

func (s Store) RemoveEncodedAtTimeTaskByScheduleId(
	t db.Transaction, groupId, scheduleId string) error

func (Store) RemoveNamedColors

func (s Store) RemoveNamedColors(t db.Transaction, id int64) error

func (Store) UpdateNamedColors

func (s Store) UpdateNamedColors(
	t db.Transaction, namedColors *ops.NamedColors) error

Jump to

Keyboard shortcuts

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