Documentation
¶
Index ¶
- type Client
- func (client *Client) Activity() (*Result, error)
- func (client *Client) Close() error
- func (client *Client) Databases() ([]string, error)
- func (client *Client) Info() (*Result, error)
- func (client *Client) Query(query string) (*Result, error)
- func (client *Client) Schemas() ([]string, error)
- func (client *Client) Sequences() ([]string, error)
- func (client *Client) Table(table string) (*Result, error)
- func (client *Client) TableConstraints(table string) (*Result, error)
- func (client *Client) TableIndexes(table string) (*Result, error)
- func (client *Client) TableInfo(table string) (*Result, error)
- func (client *Client) TableRows(table string, opts RowsOptions) (*Result, error)
- func (client *Client) Tables() ([]string, error)
- func (client *Client) Test() error
- type Result
- type Row
- type RowsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
History []history.Record
ConnectionString string
// contains filtered or unexported fields
}
func NewFromUrl ¶
func (*Client) TableConstraints ¶ added in v0.7.0
type RowsOptions ¶
type RowsOptions struct {
Limit int // Number of rows to fetch
SortColumn string // Column to sort by
SortOrder string // Sort direction (ASC, DESC)
}
Struct to hold table rows browsing options
Click to show internal directories.
Click to hide internal directories.