Documentation ¶
Overview ¶
Package pgsql AFAIRE.
Index ¶
- type Client
- func (c *Client) Begin() (*Transaction, error)
- func (c *Client) Close()
- func (c *Client) Connect(uri string) error
- func (c *Client) ContexWithTimeout(t time.Duration) (context.Context, context.CancelFunc)
- func (c *Client) Exec(sql string, args ...interface{}) (pgconn.CommandTag, error)
- func (c *Client) Query(sql string, args ...interface{}) (pgx.Rows, error)
- func (c *Client) QueryRow(sql string, args ...interface{}) pgx.Row
- type Row
- type Rows
- type Transaction
- func (t *Transaction) Commit() error
- func (t *Transaction) Exec(sql string, args ...interface{}) (pgconn.CommandTag, error)
- func (t *Transaction) Query(sql string, args ...interface{}) (pgx.Rows, error)
- func (t *Transaction) QueryRow(sql string, args ...interface{}) pgx.Row
- func (t *Transaction) Rollback()
- func (t *Transaction) TryLock(key int) (bool, error)
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 AFAIRE.
func (*Client) ContexWithTimeout ¶
ContexWithTimeout AFAIRE.
func (*Client) Exec ¶
func (c *Client) Exec(sql string, args ...interface{}) (pgconn.CommandTag, error)
Exec AFAIRE.
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
Transaction AFAIRE.
func (*Transaction) Exec ¶
func (t *Transaction) Exec(sql string, args ...interface{}) (pgconn.CommandTag, error)
Exec AFAIRE.
func (*Transaction) Query ¶
func (t *Transaction) Query(sql string, args ...interface{}) (pgx.Rows, error)
Query AFAIRE.
func (*Transaction) QueryRow ¶
func (t *Transaction) QueryRow(sql string, args ...interface{}) pgx.Row
QueryRow AFAIRE.
Click to show internal directories.
Click to hide internal directories.