Documentation ¶
Index ¶
- type Client
- func (c *Client) AutoMigrate(obj ...interface{}) error
- func (c *Client) Close() error
- func (c *Client) Count(model interface{}, opts *ratatxt.SearchOpts) (int, error)
- func (c *Client) Create(input interface{}) error
- func (c *Client) Delete(input interface{}) error
- func (c *Client) Get(row interface{}, id ratatxt.ID) error
- func (c *Client) GetByID(row interface{}, id interface{}) error
- func (c *Client) List(rows, filter interface{}) error
- func (c *Client) MessageGraph(dst interface{}, scope ratatxt.StatsScope, filter *ratatxt.MessageFilter) error
- func (c *Client) MessageStats(dst interface{}, scope ratatxt.StatsScope, filter *ratatxt.MessageFilter) error
- func (c *Client) OutboxGraph(dst interface{}, scope ratatxt.StatsScope, filter *ratatxt.MessageFilter) error
- func (c *Client) Search(data interface{}, opts *ratatxt.SearchOpts) (*ratatxt.SearchMetadata, error)
- func (c *Client) Update(input interface{}) error
- type Config
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 represents MySQL database client.
func (*Client) AutoMigrate ¶
func (*Client) Count ¶
func (c *Client) Count(model interface{}, opts *ratatxt.SearchOpts) (int, error)
func (*Client) MessageGraph ¶
func (c *Client) MessageGraph(dst interface{}, scope ratatxt.StatsScope, filter *ratatxt.MessageFilter) error
func (*Client) MessageStats ¶
func (c *Client) MessageStats(dst interface{}, scope ratatxt.StatsScope, filter *ratatxt.MessageFilter) error
func (*Client) OutboxGraph ¶
func (c *Client) OutboxGraph(dst interface{}, scope ratatxt.StatsScope, filter *ratatxt.MessageFilter) error
func (*Client) Search ¶
func (c *Client) Search(data interface{}, opts *ratatxt.SearchOpts) (*ratatxt.SearchMetadata, error)
Click to show internal directories.
Click to hide internal directories.