handlers

package
v0.0.0-...-2ff407e Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteDelete

func ExecuteDelete(c *gin.Context)

ExecuteDelete HttpHandler to validate and execute a 'DELETE' command to the database

func ExecuteInsert

func ExecuteInsert(c *gin.Context)

ExecuteInsert HttpHandler to validate and execute an 'INSERT' command to the database

func ExecuteProcedure

func ExecuteProcedure(c *gin.Context)

ExecuteProcedure HttpHandler to create and execute an 'EXEC' command to the database

func ExecuteQuery

func ExecuteQuery(c *gin.Context)

ExecuteQuery HttpHandler to validate and execute a 'SELECT' command to the database

func ExecuteUpdate

func ExecuteUpdate(c *gin.Context)

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

type ProcedureRequest struct {
	Name        string
	Parameters  map[string]*interface{}
	ExecuteOnly bool
}

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"

Jump to

Keyboard shortcuts

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