Documentation
¶
Index ¶
- type Connection
- func (c *Connection) Close()
- func (c *Connection) Connect(tries uint) error
- func (c *Connection) DB() *sql.DB
- func (c *Connection) DSN() string
- func (c *Connection) GetGlobalVarNumber(varName string) float64
- func (c *Connection) GetGlobalVarString(varName string) string
- func (c *Connection) Set(queries []Query) error
- type ConnectionFactory
- type Connector
- type DSN
- type Query
- type RealConnectionFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(dsn string) *Connection
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) Connect ¶
func (c *Connection) Connect(tries uint) error
func (*Connection) DB ¶
func (c *Connection) DB() *sql.DB
func (*Connection) DSN ¶
func (c *Connection) DSN() string
func (*Connection) GetGlobalVarNumber ¶
func (c *Connection) GetGlobalVarNumber(varName string) float64
func (*Connection) GetGlobalVarString ¶
func (c *Connection) GetGlobalVarString(varName string) string
func (*Connection) Set ¶
func (c *Connection) Set(queries []Query) error
type ConnectionFactory ¶
type RealConnectionFactory ¶
type RealConnectionFactory struct {
}
func (*RealConnectionFactory) Make ¶
func (f *RealConnectionFactory) Make(dsn string) Connector
Click to show internal directories.
Click to hide internal directories.