sqlite

package
v0.0.0-...-91e7bcc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 New

func New(conf Config) (*Client, error)

func (*Client) AutoMigrate

func (c *Client) AutoMigrate(obj ...interface{}) error

func (*Client) Close

func (c *Client) Close() error

func (*Client) Count

func (c *Client) Count(model interface{}, opts *ratatxt.SearchOpts) (int, error)

func (*Client) Create

func (c *Client) Create(input interface{}) error

func (*Client) Delete

func (c *Client) Delete(input interface{}) error

func (*Client) Get

func (c *Client) Get(row interface{}, id ratatxt.ID) error

func (*Client) GetByID

func (c *Client) GetByID(row interface{}, id interface{}) error

func (*Client) List

func (c *Client) List(rows, filter interface{}) 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)

func (*Client) Update

func (c *Client) Update(input interface{}) error

type Config

type Config struct {
	Addr string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL