mysql

package
v0.0.0-...-84c7bcc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 Column

type Column struct {
	// contains filtered or unexported fields
}

func NewColumn

func NewColumn(n string, v string) *Column

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) Close

func (this *MySQL) Close()

func (*MySQL) ConnectServer

func (this *MySQL) ConnectServer()

func (*MySQL) CreateDB

func (this *MySQL) CreateDB(dbName string)

func (*MySQL) CreateDBSetChar

func (this *MySQL) CreateDBSetChar(dbName string, charType string)

func (*MySQL) CreateTable

func (this *MySQL) CreateTable(tableName string, columns []ColumnDefinition)

func (*MySQL) Delete

func (this *MySQL) Delete(tableName string, whereColumn string, whereValue string)

func (*MySQL) FetchAll

func (this *MySQL) FetchAll(qSql string) [][]interface{}

func (*MySQL) Insert

func (this *MySQL) Insert(tableName string, columns []Column)

func (*MySQL) Query

func (this *MySQL) Query(qSql string) *sql.Rows

func (*MySQL) QueryRow

func (this *MySQL) QueryRow(qSql string) *sql.Row

func (*MySQL) Update

func (this *MySQL) Update(tableName string, setColumn string, setValue string, whereColumn string, whereValue string)

func (*MySQL) UseDB

func (this *MySQL) UseDB(dbName string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL