myDatabase

package
v0.0.0-...-f856108 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultEndDatetime = time.Date(2099, 12, 31, 12, 13, 24, 0, time.UTC)

Functions

func ConnectToDatabase

func ConnectToDatabase(driverName, dataSourceName string) (db *sqlx.DB, err error)

func CreateTable

func CreateTable(db *sqlx.DB, schema string) (result sql.Result, err error)

func DropTable

func DropTable(db *sqlx.DB, tableName string) (result sql.Result, err error)

func GetPostgreSQLContext

func GetPostgreSQLContext() (driverName, dataSourceName string)

func InitializeDB

func InitializeDB() error

func InsertInspectionLogRecordPostgreSQL

func InsertInspectionLogRecordPostgreSQL(ilr structure.InspectionLogRecord) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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