Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateAnalysis(ctx context.Context, input core.Question) (core.Question, error)
- func (c *Client) DescribeTable(ctx context.Context, databaseID, schema, table string) (TableDescription, error)
- func (c *Client) GetAnalysis(ctx context.Context, id string) (core.Question, error)
- func (c *Client) ListAnalyses(ctx context.Context) ([]core.Question, error)
- func (c *Client) ListCollections(ctx context.Context) ([]core.Collection, error)
- func (c *Client) ListDatabases(ctx context.Context) ([]core.Database, error)
- func (c *Client) ListTables(ctx context.Context, databaseID string) ([]TableSummary, error)
- func (c *Client) Preview(ctx context.Context, q queryir.Query) (appquery.DatasetResult, error)
- func (c *Client) RunAnalysis(ctx context.Context, id string) (appquery.DatasetResult, error)
- func (c *Client) Status(ctx context.Context) (DeveloperStatus, error)
- type DeveloperStatus
- type Option
- type TableDescription
- type TableSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client calls the public Topbase HTTP API. It deliberately does not have access to source-database credentials: every operation remains subject to the API key owner's Topbase permissions.
func (*Client) CreateAnalysis ¶
func (*Client) DescribeTable ¶
func (*Client) GetAnalysis ¶
func (*Client) ListAnalyses ¶
func (*Client) ListCollections ¶
func (*Client) ListDatabases ¶
func (*Client) ListTables ¶
func (*Client) RunAnalysis ¶
type DeveloperStatus ¶
type TableDescription ¶
type TableDescription struct {
Table TableSummary `json:"table"`
Fields []core.FieldMeta `json:"fields"`
Annotation core.TableAnnotation `json:"annotation"`
}
type TableSummary ¶
type TableSummary struct {
Schema string `json:"schema"`
Name string `json:"name"`
DisplayName string `json:"display_name,omitempty"`
Description string `json:"description,omitempty"`
Hidden bool `json:"hidden,omitempty"`
Warehouse bool `json:"warehouse,omitempty"`
Columns []core.Column `json:"columns,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.