Documentation
¶
Index ¶
- type Client
- func (c *Client) Catalog(ctx context.Context) (*DBNode, error)
- func (c *Client) DB() *sqlx.DB
- func (c *Client) Driver() string
- func (c *Client) Host() string
- func (c *Client) Metadata(table TableRef) (*Metadata, error)
- func (c *Client) Query(q string, args ...any) ([][]string, []string, error)
- func (c *Client) ViewMetadata(view ViewRef) (*Metadata, error)
- type DBNode
- type Metadata
- type Table
- type TableRef
- type ViewRef
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 is used to store the pool of db connection.
func (*Client) Metadata ¶ added in v0.15.0
Metadata returns the most relevant data from a given table.
type Metadata ¶ added in v0.15.0
type Metadata struct {
TableContent Table
Structure Table
Constraints Table
Indexes Table
ViewDef Table
TotalPages int
}
Metadata sums up the most relevant data from a table.
Click to show internal directories.
Click to hide internal directories.