postgres

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownOneStep

func DownOneStep() error

func StringToSQLString

func StringToSQLString(str string) sql.NullString

func Up

func Up() error

Types

type Client

type Client interface {
	NamedExec(string, interface{}) (int64, error)
	Select(interface{}, string, ...interface{}) error
	Close() error
	GetDB() *sqlx.DB
}

func NewClient

func NewClient() Client

type ClientMock

type ClientMock struct {
	mock.Mock
}

func (ClientMock) Close

func (m ClientMock) Close() error

func (ClientMock) GetDB added in v0.5.0

func (m ClientMock) GetDB() *sqlx.DB

func (ClientMock) NamedExec

func (m ClientMock) NamedExec(query string, data interface{}) (int64, error)

func (ClientMock) Select

func (m ClientMock) Select(destination interface{}, query string, arguments ...interface{}) error

type JobsExecutionAuditLog

type JobsExecutionAuditLog struct {
	JobName             string         `db:"job_name"`
	UserEmail           string         `db:"user_email"`
	ImageName           string         `db:"image_name"`
	ExecutionID         sql.NullString `db:"job_name_submitted_for_execution"`
	JobArgs             string         `db:"job_args"`
	JobSubmissionStatus string         `db:"job_submission_status"`
	Errors              string         `db:"errors"`
	JobExecutionStatus  string         `db:"job_execution_status"`
	CreatedAt           time.Time      `db:"created_at"`
	UpdatedAt           time.Time      `db:"updated_at"`
}

func (*JobsExecutionAuditLog) AddExecutionID added in v0.5.0

func (j *JobsExecutionAuditLog) AddExecutionID(jobExecutionID string)

func (*JobsExecutionAuditLog) AddJobArgs added in v0.5.0

func (j *JobsExecutionAuditLog) AddJobArgs(jobArgs map[string]string)

type JobsSchedule added in v0.5.0

type JobsSchedule struct {
	ID                 string    `db:"id"`
	Name               string    `db:"name"`
	Args               string    `db:"args"`
	Tags               string    `db:"tags"`
	Time               string    `db:"time"`
	NotificationEmails string    `db:"notification_emails"`
	UserEmail          string    `db:"user_email"`
	Group              string    `db:"group_name"`
	Enabled            bool      `db:"enabled"`
	CreatedAt          time.Time `db:"created_at"`
	UpdatedAt          time.Time `db:"updated_at"`
}

Jump to

Keyboard shortcuts

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