Documentation
¶
Index ¶
- type Client
- func (c *Client) ActiveDatabase() string
- func (c *Client) DB() *sqlx.DB
- func (c *Client) Driver() string
- func (c *Client) Metadata(tableName string) (*Metadata, error)
- func (c *Client) Query(q string, args ...interface{}) ([][]string, []string, error)
- func (c *Client) SetActiveDatabase(database string)
- func (c *Client) ShowDataCatalog() bool
- func (c *Client) ShowDatabases() ([]string, error)
- func (c *Client) ShowTables() ([]string, error)
- func (c *Client) ShowTablesPerDB(database string) ([]string, error)
- type Metadata
- type Table
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) ActiveDatabase ¶ added in v0.29.0
func (*Client) Metadata ¶ added in v0.15.0
Metadata returns the most relevant data from a given table.
func (*Client) Query ¶ added in v0.2.0
Query returns performs the query and returns the result set and the column names.
func (*Client) SetActiveDatabase ¶ added in v0.29.0
func (*Client) ShowDataCatalog ¶ added in v0.29.0
func (*Client) ShowDatabases ¶ added in v0.29.0
ShowDatabases returns a list of the databases the user has access to.
func (*Client) ShowTables ¶ added in v0.3.0
ShowTables list all the tables in the database on the tables panel.
Click to show internal directories.
Click to hide internal directories.