Documentation ¶
Overview ¶
Package postgres assemble all functions required to perform SQL queries
Index ¶
- func Create(d models.Create) (z int64, err error)
- func GetLastXDaysDeployments() (z []models.DBGetLastXDaysDeployments, err error)
- func InitDB()
- func Ping() (b bool)
- func Raw(d models.Raw) (z models.DBRaw, err error)
- func RawById(d models.RawById) (z models.DBCommons, err error)
- func ReadDistinctWorkloads() (z []models.DBReadDistinctWorkloads, err error)
- func ReadEnvironment(d models.ReadEnvironment) (z []models.DBReadCommon, err error)
- func ReadEnvironmentLatest(d models.ReadEnvironmentLatest) (z models.DbVersion, err error)
- func ReadForUnitTesting(status string) (z models.DBCommons, err error)
- func ReadHome() (z []models.DBCommons, err error)
- func ReadPlatform(d models.ReadPlatform) (z []models.DBReadCommon, err error)
- func UpdateStatus(d models.UpdateStatus) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLastXDaysDeployments ¶ added in v0.2.0
func GetLastXDaysDeployments() (z []models.DBGetLastXDaysDeployments, err error)
GetLastXDaysDeployments permit to get data into sql 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 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.
Click to show internal directories.
Click to hide internal directories.