sqlite

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(dataSourceName string) (*sql.DB, error)

Types

type ServicesRepository

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

func NewServicesRepository

func NewServicesRepository(db *sql.DB) *ServicesRepository

func (*ServicesRepository) CreateService

func (r *ServicesRepository) CreateService(ctx context.Context, parent string, service *runpb.Service) error

func (*ServicesRepository) CreateServices added in v0.0.2

func (r *ServicesRepository) CreateServices(ctx context.Context, services []*runpb.Service) error

func (*ServicesRepository) ListServices

func (r *ServicesRepository) ListServices(ctx context.Context, parent string, limit int32) ([]*runpb.Service, error)

TODO: annotation

func (*ServicesRepository) ListServicesByParentCreatedAtName

func (r *ServicesRepository) ListServicesByParentCreatedAtName(ctx context.Context, parent string, createdAt, name string, limit int32) ([]*runpb.Service, error)

Directories

Path Synopsis
Package xo contains generated code for schema 'cloud-run-api-emulator.db'.
Package xo contains generated code for schema 'cloud-run-api-emulator.db'.

Jump to

Keyboard shortcuts

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