models

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Error string    `json:"error"`
	Time  time.Time `json:"timestamp"`
}

type HealthResponse

type HealthResponse struct {
	Status string `json:"status"`
	Time   string `json:"timestamp"`
}

type QueryRequest

type QueryRequest struct {
	SQL string `json:"sql" binding:"required"`
}

type QueryResponse

type QueryResponse struct {
	Columns []string        `json:"columns"`
	Rows    [][]interface{} `json:"rows"`
	Count   int             `json:"count"`
	Time    string          `json:"execution_time"`
}

Jump to

Keyboard shortcuts

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