Documentation ¶
Index ¶
- Constants
- type BinaryColumn
- type Column
- type IntColumn
- 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
- type Tsdb
Constants ¶
View Source
const ALTER_QUERY = "ALTER TABLE goflow_records ALTER COLUMN %v TYPE %v"
View Source
const PRUNE_QUERY = "DELETE FROM goflow_records WHERE last_switched <= NOW() - INTERVAL '%v DAYS';"
View Source
const SIZE_QUERY = "SELECT * FROM hypertable_relation_size('goflow_records');"
View Source
const TEST_QUERY = `` /* 354-byte string literal not displayed */
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 Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func (*Schema) AddBinaryColumn ¶
func (*Schema) AddIntColumn ¶
func (*Schema) GetColumnStrings ¶
func (*Schema) InsertQuery ¶
func (*Schema) InsertQueryFields ¶
type Tsdb ¶
type Tsdb struct { Dbname string Dbpass string Dbuser string Server string SSLMode string CheckQuery string AddQuery string InitQuery string AddIndexQuery string InsertQuery string DropQuery string AlterColQuery string // contains filtered or unexported fields }
func (*Tsdb) CheckSchema ¶
func (b *Tsdb) CheckSchema()
Click to show internal directories.
Click to hide internal directories.