Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyConnection = Connection{}
Functions ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection stateful connection to our db
func Get ¶
func Get(user string, password string, host string) (Connection, error)
Get snags us a connection to our wonderful backend, or an error if something goes terribly wrong
func (*Connection) Bind ¶
func (c *Connection) Bind(tableName string, schema structable.Record) structable.Recorder
func (*Connection) RunQuery ¶
func (c *Connection) RunQuery(builder squirrel.SelectBuilder) (*sql.Rows, error)
Click to show internal directories.
Click to hide internal directories.