database

package
v0.0.0-...-70308e0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchCreateAndUpdateStatus

func BatchCreateAndUpdateStatus(rows []models.Work)

BatchCreateAndUpdateStatus creates multiple ims_items entries in a single query and then updates their status using one query for updating all items for a single status

func Close

func Close()

Close closes the database connection

func Count

func Count() int64

Count returns ims_item row count

func CreateAndUpdateStatus

func CreateAndUpdateStatus(row models.Work)

CreateAndUpdateStatus creates an ims_item entry and then updates it's status

func InitDB

func InitDB(dbHost string, dbPort int, dbName string)

InitDB connects to the database and returns the database object

func LoadManagementTable

func LoadManagementTable() ([]int, map[int]string)

LoadManagementTable creates an in-memory cache from fclkp_managementlookup table

Types

This section is empty.

Jump to

Keyboard shortcuts

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