postgresql

package
v0.2.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Exec(query string, args ...any) (sql.Result, error)
	QueryRow(query string, args ...any) *sql.Row
}

type PostgresStore

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

func NewStore

func NewStore(db DB) *PostgresStore

func (*PostgresStore) ClearStores

func (ps *PostgresStore) ClearStores() error

func (*PostgresStore) CreateStores

func (ps *PostgresStore) CreateStores() error

func (*PostgresStore) DeleteStores

func (ps *PostgresStore) DeleteStores() error

func (*PostgresStore) GetLastTick

func (ps *PostgresStore) GetLastTick(name string) (time.Time, error)

func (*PostgresStore) GetTaskSettings

func (ps *PostgresStore) GetTaskSettings(name string) (*store.TaskSettings, error)

func (*PostgresStore) SaveExecution

func (ps *PostgresStore) SaveExecution(name string, info *store.ExecutionInfo) error

func (*PostgresStore) SaveTask

func (ps *PostgresStore) SaveTask(name string, settings *store.TaskSettings) error

func (*PostgresStore) TaskExists

func (ps *PostgresStore) TaskExists(name string) (bool, error)

func (*PostgresStore) UpdateTaskStatus

func (ps *PostgresStore) UpdateTaskStatus(name string, status store.TaskStatus) error

Jump to

Keyboard shortcuts

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