Documentation ¶
Index ¶
- type DBController
- func (db *DBController) DeleteDataFromTable(ctx *gin.Context) error
- func (db *DBController) GetDataFromRequest(ctx *gin.Context) (DBData, error)
- func (db *DBController) GetDataFromTables(ctx *gin.Context)
- func (db *DBController) GetDatabyQuery(ctx *gin.Context)
- func (db *DBController) InsertDataToTable(ctx *gin.Context) error
- func (db *DBController) UpdateDataToTable(ctx *gin.Context) error
- type DBData
- type QueryInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBController ¶
type DBController struct { }
func (*DBController) DeleteDataFromTable ¶
func (db *DBController) DeleteDataFromTable(ctx *gin.Context) error
func (*DBController) GetDataFromRequest ¶
func (db *DBController) GetDataFromRequest(ctx *gin.Context) (DBData, error)
func (*DBController) GetDataFromTables ¶
func (db *DBController) GetDataFromTables(ctx *gin.Context)
func (*DBController) GetDatabyQuery ¶
func (db *DBController) GetDatabyQuery(ctx *gin.Context)
func (*DBController) InsertDataToTable ¶
func (db *DBController) InsertDataToTable(ctx *gin.Context) error
func (*DBController) UpdateDataToTable ¶
func (db *DBController) UpdateDataToTable(ctx *gin.Context) error
type DBData ¶
type DBData struct { TableName string `json."tablename"` // table name Data map[string]interface{} `json."data"` Operation string `json."operation"` // insert, update, delete Keys []string `json."keys"` // keys for update and delete Where map[string]interface{} `json."where"` // where args for update and delete NullValues map[string]interface{} `json."nullvalues"` QueryStr string `json."querystr"` // query string for query }
type QueryInput ¶
type QueryInput struct {
QueryStr string `json."querystr"` // query string for query
}
Click to show internal directories.
Click to hide internal directories.