Documentation ¶
Index ¶
- Variables
- func ConnectToDatabase(driverName, dataSourceName string) (db *sqlx.DB, err error)
- func CreateTable(db *sqlx.DB, schema string) (result sql.Result, err error)
- func DropTable(db *sqlx.DB, tableName string) (result sql.Result, err error)
- func GetPostgreSQLContext() (driverName, dataSourceName string)
- func InitializeDB() error
- func InsertInspectionLogRecordPostgreSQL(ilr structure.InspectionLogRecord) error
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 GetPostgreSQLContext ¶
func GetPostgreSQLContext() (driverName, dataSourceName string)
func InitializeDB ¶
func InitializeDB() error
func InsertInspectionLogRecordPostgreSQL ¶
func InsertInspectionLogRecordPostgreSQL(ilr structure.InspectionLogRecord) error
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.