Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteWithTransaction ¶
ExecuteWithTransaction opens a transaction and executes the cmd. Rollback happens if there is an error
func GetConnection ¶
GetConnection Make a connection to the database to execute queries against
Types ¶
type Results ¶
Results contains the column names and the data
func ExecuteQuery ¶
ExecuteQuery Run the provided command and return the results in a 2 dimensional slice where slice[0] are column names, and all other slices are the resulting rows
type SQLDatabase ¶
SQLDatabase struct to hold the connection
Click to show internal directories.
Click to hide internal directories.