postgres

package
v0.0.0-...-9090b94 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *config.Config) (db.Database, error)

New is used to create a new PostgreSQL database connection

Types

type SQL

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

SQL struct implementing the Database interface with PostgreSQL backend

func (*SQL) Get

func (sql *SQL) Get(buildID string) (*ale.JenkinsData, error)

Get retrieves logs from the database

func (*SQL) Has

func (sql *SQL) Has(buildID string) (bool, error)

Has verifies the existance of a log

func (*SQL) Put

func (sql *SQL) Put(data *ale.JenkinsData, buildID string) error

Put inserts data into the database

func (*SQL) Remove

func (sql *SQL) Remove(buildID string) error

Remove is used to remove an entry from the database

Jump to

Keyboard shortcuts

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