Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseConnection ¶
type DatabaseConnection interface { CreateLog(logType int, text string, logError string, jobHistoryID string, createTime time.Time) (id int, affectedRows int, err error) Execute(sql string, args ...interface{}) (result sql.Result, err error) Exec(procedure *Procedure) Read(procedure *Procedure) Migrate(path string) (err error) }
DatabaseConnection defines the methods that are required to fulfil the needs of the application for interacting with a database
func NewConnection ¶
func NewConnection(config dbConfig) (DatabaseConnection, error)
NewConnection returns a connection to the sql database
Click to show internal directories.
Click to hide internal directories.