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) TableRowsCount(table string, opts RowsOptions) (*Result, error)
- func (client *Client) Tables() ([]string, error)
- func (client *Client) Test() error
- type Pagination
- 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 `json:"history"` ConnectionString string `json:"connection_string"` // contains filtered or unexported fields }
func NewFromUrl ¶
func (*Client) TableConstraints ¶ added in v0.7.0
func (*Client) TableRows ¶
func (client *Client) TableRows(table string, opts RowsOptions) (*Result, error)
func (*Client) TableRowsCount ¶ added in v0.8.0
func (client *Client) TableRowsCount(table string, opts RowsOptions) (*Result, error)
type Pagination ¶ added in v0.8.0
type Result ¶
type Result struct { Pagination *Pagination `json:"pagination,omitempty"` Columns []string `json:"columns"` Rows []Row `json:"rows"` }
func (*Result) PrepareBigints ¶ added in v0.8.0
func (res *Result) PrepareBigints()
Due to big int number limitations in javascript, numbers should be encoded as strings so they could be properly loaded on the frontend.
Click to show internal directories.
Click to hide internal directories.