controllers: Index | Files

package controllers

import ""


Package Files

databases.go schemas.go sql.go tables.go

func BatchInsertInTables Uses

func BatchInsertInTables(w http.ResponseWriter, r *http.Request)

BatchInsertInTables perform insert in specific table from a batch request

func DeleteFromTable Uses

func DeleteFromTable(w http.ResponseWriter, r *http.Request)

DeleteFromTable perform delete sql

func ExecuteFromScripts Uses

func ExecuteFromScripts(w http.ResponseWriter, r *http.Request)

ExecuteFromScripts is a controller to peform SQL in scripts created by users

func ExecuteScriptQuery Uses

func ExecuteScriptQuery(rq *http.Request, queriesPath string, script string) ([]byte, error)

ExecuteScriptQuery is a function to execute and return result of script query

func GetDatabases Uses

func GetDatabases(w http.ResponseWriter, r *http.Request)

GetDatabases list all (or filter) databases

func GetSchemas Uses

func GetSchemas(w http.ResponseWriter, r *http.Request)

GetSchemas list all (or filter) schemas

func GetTables Uses

func GetTables(w http.ResponseWriter, r *http.Request)

GetTables list all (or filter) tables

func GetTablesByDatabaseAndSchema Uses

func GetTablesByDatabaseAndSchema(w http.ResponseWriter, r *http.Request)

GetTablesByDatabaseAndSchema list all (or filter) tables based on database and schema

func InsertInTables Uses

func InsertInTables(w http.ResponseWriter, r *http.Request)

InsertInTables perform insert in specific table

func SelectFromTables Uses

func SelectFromTables(w http.ResponseWriter, r *http.Request)

SelectFromTables perform select in database

func UpdateTable Uses

func UpdateTable(w http.ResponseWriter, r *http.Request)

UpdateTable perform update table

Package controllers imports 6 packages (graph) and is imported by 2 packages. Updated 2019-08-19. Refresh now. Tools for package owners.