Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteDelete ¶
ExecuteDelete HttpHandler to validate and execute a 'DELETE' command to the database
func ExecuteInsert ¶
ExecuteInsert HttpHandler to validate and execute an 'INSERT' command to the database
func ExecuteProcedure ¶
ExecuteProcedure HttpHandler to create and execute an 'EXEC' command to the database
func ExecuteQuery ¶
ExecuteQuery HttpHandler to validate and execute a 'SELECT' command to the database
func ExecuteUpdate ¶
ExecuteUpdate HttpHandler to validate and execute an 'UPDATE' command to the database
Types ¶
type DeleteRequest ¶
type DeleteRequest struct {
Delete string
}
DeleteRequest A struct to hold the body of the delete request with a property of "delete"
type InsertRequest ¶
type InsertRequest struct {
Insert string
}
InsertRequest A struct to hold the body of the query request with a property of "insert"
type ProcedureRequest ¶
ProcedureRequest A struct to hold the body of the request with properties "name", "parameters", and "result"
type QueryRequest ¶
type QueryRequest struct {
Query string
}
QueryRequest A struct to hold the body of the query request with a property of "query"
type UpdateRequest ¶
type UpdateRequest struct {
Update string
}
UpdateRequest A struct to hold the body of the query request with a property of "update"