postgres

package module
v0.0.0-...-401481c Latest Latest
Warning

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

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

Documentation

Overview

Package postgres implements PostgreSQL as a hashR storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage allows to interact with PostgreSQL instance.

func NewStorage

func NewStorage(sqlDB *sql.DB) (*Storage, error)

NewStorage creates new Storage struct that allows to interact with PostgreSQL instance.

func (*Storage) FetchJobs

func (s *Storage) FetchJobs(ctx context.Context) (map[string]string, error)

FetchJobs fetches processing jobs from cloud spanner.

func (*Storage) UpdateJobs

func (s *Storage) UpdateJobs(ctx context.Context, qHash string, p *hashr.ProcessingSource) error

UpdateJobs updates cloud spanner table.

Jump to

Keyboard shortcuts

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