postgres

package
v0.0.0-...-58c3220 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BatchInferenceJobTable = "odahu_batch_inference_job"
)
View Source
const (
	BatchInferenceServiceTable = "odahu_batch_inference_service"
)

Variables

View Source
var (
	MaxSize   = 500
	FirstPage = 0
)

Functions

This section is empty.

Types

type BIJRepo

type BIJRepo struct {
	DB *sql.DB
}

InferenceJob persistence repository

func (BIJRepo) Create

func (r BIJRepo) Create(ctx context.Context, tx *sql.Tx, bij api_types.InferenceJob) (err error)

func (BIJRepo) Delete

func (r BIJRepo) Delete(ctx context.Context, tx *sql.Tx, id string) (err error)

func (BIJRepo) Get

func (r BIJRepo) Get(ctx context.Context, tx *sql.Tx, id string) (res api_types.InferenceJob, err error)

func (BIJRepo) List

func (r BIJRepo) List(
	ctx context.Context, tx *sql.Tx, options ...filter.ListOption) (res []api_types.InferenceJob, err error)

func (BIJRepo) SetDeletionMark

func (r BIJRepo) SetDeletionMark(ctx context.Context, tx *sql.Tx, id string, value bool) error

func (BIJRepo) UpdateStatus

func (r BIJRepo) UpdateStatus(
	ctx context.Context, tx *sql.Tx, id string, s api_types.InferenceJobStatus) (err error)

type BISRepo

type BISRepo struct {
	DB *sql.DB
}

BatchInferenceService persistence repository

func (BISRepo) Create

func (r BISRepo) Create(ctx context.Context, tx *sql.Tx, bis api_types.InferenceService) (err error)

func (BISRepo) Delete

func (r BISRepo) Delete(ctx context.Context, tx *sql.Tx, id string) (err error)

func (BISRepo) Get

func (r BISRepo) Get(ctx context.Context, tx *sql.Tx, id string) (res api_types.InferenceService, err error)

func (BISRepo) List

func (r BISRepo) List(
	ctx context.Context, tx *sql.Tx, options ...filter.ListOption) (res []api_types.InferenceService, err error)

func (BISRepo) Update

func (r BISRepo) Update(
	ctx context.Context, tx *sql.Tx, id string, bis api_types.InferenceService) (err error)

Jump to

Keyboard shortcuts

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