Documentation ¶
Index ¶
Constants ¶
View Source
const (
CONNECTION_FORMAT = "%s://%s:%s@%s/%s?sslmode=%s"
)
Variables ¶
This section is empty.
Functions ¶
func ConnectionString ¶
func ConnectionString() string
func Disconnect ¶
func Disconnect() error
Types ¶
type Connection ¶
type Connection interface { Begin() (Transaction, error) Ping() error // contains filtered or unexported methods }
type Transaction ¶
type Transaction interface { Commit() error Rollback() error Stmt(stmt *Stmt) Statement // contains filtered or unexported methods }
func Begin ¶
func Begin() (Transaction, error)
Click to show internal directories.
Click to hide internal directories.