Documentation
¶
Index ¶
- type Client
- func (r *Client) Connect() error
- func (r *Client) Insert(vals [][]interface{}, insertStr string, maxlen int, strs *[]string, ...) error
- func (r *Client) InsertBulk(schema, table string, values [][]interface{}) error
- func (r *Client) Replace(schema, table string, values [][]interface{}) error
- func (r *Client) Truncate(schema, table string) error
- type Connection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *Connection *sql.DB }
func (*Client) InsertBulk ¶
type Connection ¶
type Connection struct { Host string `mapstructure:"host"` Port int `mapstructure:"port"` User string `mapstructure:"user"` Name string `mapstructure:"dbname"` }
func (*Connection) String ¶
func (c *Connection) String() string
Click to show internal directories.
Click to hide internal directories.