Documentation ¶
Index ¶
- Constants
- type Column
- type ColumnDefinition
- type MySQL
- func (this *MySQL) Close()
- func (this *MySQL) ConnectServer()
- func (this *MySQL) CreateDB(dbName string)
- func (this *MySQL) CreateDBSetChar(dbName string, charType string)
- func (this *MySQL) CreateTable(tableName string, columns []ColumnDefinition)
- func (this *MySQL) Delete(tableName string, whereColumn string, whereValue string)
- func (this *MySQL) FetchAll(qSql string) [][]interface{}
- func (this *MySQL) Insert(tableName string, columns []Column)
- func (this *MySQL) Query(qSql string) *sql.Rows
- func (this *MySQL) QueryRow(qSql string) *sql.Row
- func (this *MySQL) Update(tableName string, setColumn string, setValue string, whereColumn string, ...)
- func (this *MySQL) UseDB(dbName string)
Constants ¶
View Source
const Pass = ""
View Source
const Port = "3306"
View Source
const User = "root"
起動前に変更
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnDefinition ¶
type ColumnDefinition struct {
// contains filtered or unexported fields
}
func NewColumnDefinition ¶
func NewColumnDefinition(n string, dt string, pk bool) *ColumnDefinition
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
func (*MySQL) ConnectServer ¶
func (this *MySQL) ConnectServer()
func (*MySQL) CreateDBSetChar ¶
func (*MySQL) CreateTable ¶
func (this *MySQL) CreateTable(tableName string, columns []ColumnDefinition)
Click to show internal directories.
Click to hide internal directories.