Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { User string `json:"user,omitempty"` Password string `json:"password,omitempty"` Method string `json:"method,omitempty"` Host string `json:"host,omitempty"` Port string `json:"port,omitempty"` Schema string `json:"schema,omitempty"` Query *string `json:"query,omitempty"` sync.RWMutex // contains filtered or unexported fields }
func (*Connection) Db ¶
func (c *Connection) Db() *sql.DB
Db is the method that should be generally called, (E.g. variable.Db().prepare("INSERT INTO...")
func (*Connection) Ping ¶
func (c *Connection) Ping()
func (*Connection) SetDb ¶
func (c *Connection) SetDb(db *sql.DB)
SetDb should be avoided generally and is there for overriding purposes only
Click to show internal directories.
Click to hide internal directories.