Documentation ¶
Index ¶
- type Client
- func (c *Client) DB() *sqlx.DB
- func (c *Client) Driver() string
- func (c *Client) Metadata(tableName string) (*Metadata, error)
- func (c *Client) NextPage() (*Table, int, error)
- func (c *Client) PreviousPage() (*Table, int, error)
- func (c *Client) Query(q string, args ...interface{}) ([][]string, []string, error)
- func (c *Client) ResetPagination() error
- func (c *Client) ShowTables() ([]string, error)
- func (c *Client) TotalPages() int
- 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) Metadata ¶ added in v0.15.0
Metadata returns the most relevant data from a given table.
func (*Client) NextPage ¶ added in v0.15.0
NextPage returns the next page of the given table, based off the limit and the offsite.
func (*Client) PreviousPage ¶ added in v0.15.0
PreviousPage returns the next page of the given table, based off the limit and the offsite.
func (*Client) Query ¶ added in v0.2.0
Query returns performs the query and returns the result set and the column names.
func (*Client) ResetPagination ¶ added in v0.15.0
ResetPagination resets the paginationManager field.
func (*Client) ShowTables ¶ added in v0.3.0
ShowTables list all the tables in the database on the tables panel.
func (*Client) TotalPages ¶ added in v0.16.2
Click to show internal directories.
Click to hide internal directories.