Documentation ¶
Overview ¶
Package mysql provides a MySQL client to interact with a MySQL server.
Index ¶
- 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.