Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Datetime MySQL 5.7 format. Datetime = "2006-01-02T15:04:05Z" // UpdateID is a user id to use with the updatedby column. UpdateID = "b66dc282-a029-4e99-85db-2cf2892fffcc" )
Variables ¶
View Source
var ErrConnect = errors.New("could not connect to the mysql database server")
Functions ¶
Types ¶
type Connection ¶
type Connection struct { Name string // Name of the database User string // User name access. Pass string // Pass is the user password. Server string // Server is URI to connect to the database, using the protocol, address and port. Protocol string // Protocol to connect to the database. Address string // Address to connect to the database. Port string // Port to connect to the database. }
Connection information for a MySQL database.
func (*Connection) String ¶
func (c *Connection) String() string
Click to show internal directories.
Click to hide internal directories.