Documentation ¶
Index ¶
- Constants
- type BinaryColumn
- type Column
- type IntColumn
- type Mysql
- type Schema
- func (s *Schema) AddBinaryColumn(f uint16, n string, t string, o string) *BinaryColumn
- func (s *Schema) AddIntColumn(f uint16, n string, t string, o string) *IntColumn
- func (s *Schema) GetColumn(c string) Column
- func (s *Schema) GetColumnStrings(t string) string
- func (s *Schema) InsertQuery(t string, v map[uint16]fields.Value) string
- func (s *Schema) InsertQueryFields() string
Constants ¶
View Source
const PRUNE_QUERY = "DELETE FROM goflow_records WHERE last_switched <= DATE_SUB(CURDATE(), INTERVAL %v DAY)"
View Source
const TEST_QUERY = "" /* 157-byte string literal not displayed */
View Source
const USE_QUERY = "USE %v"
MySQL Backend
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryColumn ¶
# Binary Binary columns for binary data #
func (*BinaryColumn) GetName ¶
func (c *BinaryColumn) GetName() string
func (*BinaryColumn) GetOptions ¶
func (c *BinaryColumn) GetOptions() string
func (*BinaryColumn) GetType ¶
func (c *BinaryColumn) GetType() string
func (*BinaryColumn) Init ¶
func (c *BinaryColumn) Init() string
func (*BinaryColumn) InsertValue ¶
func (c *BinaryColumn) InsertValue(v fields.Value) string
InsertValue Retrieves the string required to insert a value in a column using normal insert statement
type Mysql ¶
type Mysql struct { Dbname string Dbpass string Dbuser string Server string CheckQuery string AlterQuery string InitQuery string AddIndexQuery string InsertQuery string DropQuery string AlterColQuery string // contains filtered or unexported fields }
func (*Mysql) CheckSchema ¶
func (b *Mysql) CheckSchema()
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func (*Schema) AddBinaryColumn ¶
func (*Schema) AddIntColumn ¶
func (*Schema) GetColumnStrings ¶
func (*Schema) InsertQuery ¶
func (*Schema) InsertQueryFields ¶
Click to show internal directories.
Click to hide internal directories.