db

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 11 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 struct {
	*sql.DB
}

func NewDB

func NewDB(path string) (*DB, error)

func (*DB) GetFilter

func (db *DB) GetFilter(ctx context.Context, id string) (*sync.Filter, error)

func (*DB) GetLabel

func (db *DB) GetLabel(ctx context.Context, name string) (*model.Label, error)

func (*DB) GetProject

func (db *DB) GetProject(ctx context.Context, id string) (*sync.Project, error)

func (*DB) GetSection

func (db *DB) GetSection(ctx context.Context, id string) (*model.Section, error)

func (*DB) GetTask

func (db *DB) GetTask(ctx context.Context, id string) (*model.Task, error)

func (*DB) GetUser

func (db *DB) GetUser(ctx context.Context) (*sync.User, error)

func (*DB) HandleResponse

func (db *DB) HandleResponse(ctx context.Context, resp any) error

func (*DB) ListFilters

func (db *DB) ListFilters(ctx context.Context) ([]*sync.Filter, error)

func (*DB) ListLabels

func (db *DB) ListLabels(ctx context.Context) ([]*model.Label, error)

func (*DB) ListProjects

func (db *DB) ListProjects(ctx context.Context, args *model.ProjectListArgs) ([]*sync.Project, error)

func (*DB) ListSections

func (db *DB) ListSections(ctx context.Context, args *model.SectionListArgs) ([]*model.Section, error)

func (*DB) ListTasks

func (db *DB) ListTasks(ctx context.Context, args *model.TaskListArgs) ([]*model.Task, error)

func (*DB) Migrate

func (db *DB) Migrate() error

func (*DB) ResourceTypes

func (db *DB) ResourceTypes(ctx context.Context) (*sync.ResourceTypes, error)

func (*DB) SyncToken

func (db *DB) SyncToken(ctx context.Context) (*string, error)

Jump to

Keyboard shortcuts

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