Documentation ¶
Index ¶
- func License() string
- func SliceScan(r *sql.Rows) ([]interface{}, error)
- type API
- func (a *API) Handler(browserRoot string) http.Handler
- func (a *API) Info(w http.ResponseWriter, req *http.Request)
- func (a *API) Query(w http.ResponseWriter, req *http.Request)
- func (a *API) Table(w http.ResponseWriter, req *http.Request)
- func (a *API) TableIndexes(w http.ResponseWriter, req *http.Request)
- func (a *API) TableInfo(w http.ResponseWriter, req *http.Request)
- func (a *API) TableSQL(w http.ResponseWriter, req *http.Request)
- func (a *API) Tables(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SliceScan ¶
SliceScan a row, returning a []interface{} with values similar to MapScan. This function is primarily intended for use where the number of columns is not known. Because you can pass an []interface{} directly to Scan, it's recommended that you do that as it will not have to allocate new slices per row.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API ...
func NewAPIFromDB ¶
NewAPIFromDB initializes the API controller with a DB.
func (*API) TableIndexes ¶
func (a *API) TableIndexes(w http.ResponseWriter, req *http.Request)
TableIndexes ...
func (*API) TableInfo ¶
func (a *API) TableInfo(w http.ResponseWriter, req *http.Request)
TableInfo ...
Click to show internal directories.
Click to hide internal directories.