Documentation
¶
Index ¶
- func Create(dbPath string) httprouter.Handle
- func Delete(dbPath string) httprouter.Handle
- func Exec(dbPath string) httprouter.Handle
- func Get(dbPath string) httprouter.Handle
- func GetAll(dbPath string) httprouter.Handle
- func GetApiVersion() httprouter.Handle
- func GetDatabaseInfo(dbPath string) httprouter.Handle
- func GetForeignKeys(dbPath string) httprouter.Handle
- func GetTableSchema(dbPath string) httprouter.Handle
- func GetTables(dbPath string) httprouter.Handle
- func HealthCheck(dbPath string) httprouter.Handle
- func Update(dbPath string) httprouter.Handle
- type ErrorResponse
- type ExecBody
- type Filter
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 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
Click to show internal directories.
Click to hide internal directories.