Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ColumnSchema ¶
type QueryColumn ¶
type QueryRequest ¶
type QueryResponse ¶
type QueryResponse struct {
Dialect string `json:"dialect"`
ReadOnly bool `json:"read_only"`
StatementType string `json:"statement_type"`
Query string `json:"query"`
Limit int `json:"limit"`
DurationMs int64 `json:"duration_ms"`
RowCount int `json:"row_count"`
Truncated bool `json:"truncated"`
Columns []QueryColumn `json:"columns"`
Rows [][]any `json:"rows"`
}
type SchemaResponse ¶
type SchemaResponse struct {
Dialect string `json:"dialect"`
Version string `json:"version,omitempty"`
ReadOnly bool `json:"read_only"`
Tables []TableSchema `json:"tables"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Query ¶
func (s *Service) Query(req QueryRequest) (resp *QueryResponse, err error)
func (*Service) Schema ¶
func (s *Service) Schema() (*SchemaResponse, error)
type TableSchema ¶
type TableSchema struct {
Name string `json:"name"`
RowCount *int64 `json:"row_count,omitempty"`
Columns []ColumnSchema `json:"columns"`
}
Click to show internal directories.
Click to hide internal directories.