Documentation
¶
Index ¶
- type Client
- func (c *Client) Constraints(tableName string) ([][]string, []string, error)
- func (c *Client) DB() *sqlx.DB
- func (c *Client) Driver() string
- func (c *Client) Query(q string, args ...interface{}) ([][]string, []string, error)
- func (c *Client) ShowTables() ([]string, error)
- func (c *Client) TableContent(tableName string) ([][]string, []string, error)
- func (c *Client) TableStructure(tableName string) ([][]string, []string, error)
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) Constraints ¶ added in v0.11.1
Constraints returns the resultet of from information_schema.table_constraints.
func (*Client) Query ¶ added in v0.2.0
Query returns performs the query and returns the result set and the column names.
func (*Client) ShowTables ¶ added in v0.3.0
ShowTables list all the tables in the database on the tables panel.
func (*Client) TableContent ¶ added in v0.2.0
TableContent returns all the rows of a table.
Click to show internal directories.
Click to hide internal directories.