databaseop

package
v0.0.0-...-edbed3e Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

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