queryrun

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type Repo

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

func NewRepository

func NewRepository(ctx context.Context, client *dynamodb.Client, tableName string) *Repo

func (*Repo) Create

func (r *Repo) Create(run *Run) error

func (*Repo) Get

func (r *Repo) Get(id string) (*Run, error)

type Repository

type Repository interface {
	Create(run *Run) error
	Get(id string) (*Run, error)
}

type Run

type Run struct {
	ID string `dynamodbav:"Id"`

	Version string `dynamodbav:"Version"`
	Input   string `dynamodbav:"Input"`
	Output  string `dynamodbav:"Output"`

	Database string                  `dynamodbav:"Database"`
	Settings runsettings.RunSettings `dynamodbav:"Settings"`

	CreatedAt     time.Time     `dynamodbav:"CreatedAt"`
	ExecutionTime time.Duration `dynamodbav:"ExecutionTime"`
}

func New

func New(input string, database string, version string, settings runsettings.RunSettings) *Run

Jump to

Keyboard shortcuts

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