controllers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(dbPath string) httprouter.Handle

func Delete

func Delete(dbPath string) httprouter.Handle

func Exec

func Exec(dbPath string) httprouter.Handle

func Get

func Get(dbPath string) httprouter.Handle

func GetAll

func GetAll(dbPath string) httprouter.Handle

func GetApiVersion

func GetApiVersion() httprouter.Handle

GetApiVersion returns the API version

func GetDatabaseInfo

func GetDatabaseInfo(dbPath string) httprouter.Handle

GetDatabaseInfo returns general information about the database

func GetForeignKeys

func GetForeignKeys(dbPath string) httprouter.Handle

GetForeignKeys returns foreign key relationships for a specific table

func GetTableSchema

func GetTableSchema(dbPath string) httprouter.Handle

GetTableSchema returns the schema of a specific table

func GetTables

func GetTables(dbPath string) httprouter.Handle

GetTables returns a list of all tables in the database

func HealthCheck

func HealthCheck(dbPath string) httprouter.Handle

HealthCheck returns a simple health check response

func Update

func Update(dbPath string) httprouter.Handle

Types

type ErrorResponse

type ErrorResponse struct {
	Status  string `json:"status"`
	Message string `json:"message"`
	Code    int    `json:"code"`
}

ErrorResponse represents a standardized error response

type ExecBody

type ExecBody struct {
	Query string `json:"query"`
}

type Filter

type Filter struct {
	Column   string `json:"column"`
	Operator string `json:"operator"`
	Value    string `json:"value"`
}

Jump to

Keyboard shortcuts

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