Documentation ¶
Overview ¶
Package mysql provides a MySQL client to interact with a MySQL server.
Index ¶
- Constants
- func RunServer(t testing.TB, serverAddr, serverPort string, withTLS bool) error
- type Client
- func (c *Client) AlterTable() error
- func (c *Client) CreateDB() error
- func (c *Client) CreateTable() error
- func (c *Client) DeleteFromTable(name string) error
- func (c *Client) DropDB() error
- func (c *Client) DropTable() error
- func (c *Client) InsertIntoTable(name string, population int) error
- func (c *Client) SelectAllFromTable() error
- func (c *Client) SelectFromTable(name string) (int, error)
- func (c *Client) UpdateTable(srcName, newName string, newPopulation int) error
- type Options
Constants ¶
View Source
const ( // User is the username used for authentication User = "root" // Pass is the password used for authentication Pass = "root" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client is a MySQL client.
func (*Client) DeleteFromTable ¶
DeleteFromTable deletes a row from the table.
func (*Client) InsertIntoTable ¶
InsertIntoTable inserts a row into the table.
func (*Client) SelectAllFromTable ¶
SelectAllFromTable select all rows from the table.
func (*Client) SelectFromTable ¶
SelectFromTable selects a row from the table.
Click to show internal directories.
Click to hide internal directories.