Documentation
¶
Index ¶
Constants ¶
View Source
const ( CocktailsDB = "cocktails" OpenBarDB = "openbardb" )
Variables ¶
This section is empty.
Functions ¶
func NewConn ¶
func NewConn(ctx context.Context, params *ConnParams) (*dbr.Connection, error)
NewConn initializes the database connection
Types ¶
type ConnParams ¶
type ConnParams struct {
Host string
User string
Pass string
DbName string
Branch string
Port int
MultiStatements bool
}
ConnParams contains the parameters needed to connect to the database
func (ConnParams) String ¶
func (cp ConnParams) String() string
String returns a string representation of the connection parameters
Click to show internal directories.
Click to hide internal directories.