postgres

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package postgres assemble all functions required to perform SQL queries

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(d models.Create) (z int64, err error)

Create permit to insert data into sql instance

func GetLastXDaysDeployments added in v0.2.0

func GetLastXDaysDeployments() (z []models.DBGetLastXDaysDeployments, err error)

GetLastXDaysDeployments permit to get data into sql instance

func InitDB

func InitDB()

InitDB permit to initialiaze or migrate databases

func Ping

func Ping() (b bool)

Ping permit to ping sql instance

func Raw

func Raw(d models.Raw) (z models.DBRaw, err error)

Raw permit to get data from raw column instance

func RawById

func RawById(d models.RawById) (z models.DBCommons, err error)

RawById permit to get data from raw by version_id column instance

func ReadDistinctWorkloads

func ReadDistinctWorkloads() (z []models.DBReadDistinctWorkloads, err error)

ReadDistinctWorkloads permit to get data into sql instance

func ReadEnvironment

func ReadEnvironment(d models.ReadEnvironment) (z []models.DBReadCommon, err error)

ReadEnvironment permit to get data into sql instance

func ReadEnvironmentLatest

func ReadEnvironmentLatest(d models.ReadEnvironmentLatest) (z models.DbVersion, err error)

ReadEnvironmentLatest permit to get latest version with status deployed or completed

func ReadForUnitTesting

func ReadForUnitTesting(status string) (z models.DBCommons, err error)

func ReadHome

func ReadHome() (z []models.DBCommons, err error)

ReadHome permit to get data into sql instance

func ReadPlatform

func ReadPlatform(d models.ReadPlatform) (z []models.DBReadCommon, err error)

ReadPlatform permit to get data into sql instance

func UpdateStatus

func UpdateStatus(d models.UpdateStatus) (err error)

UpdateStatus permit to insert data into sql instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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