Documentation ¶
Index ¶
- Constants
- func MysqlGetWhere(connection Connection, model reflect.Type, whereClause string, sort string, ...) ([]map[string]interface{}, error)
- func PostgresGetWhere(connection Connection, model reflect.Type, whereClause string, sort string, ...) ([]map[string]interface{}, error)
- type Connection
- func (connection *Connection) GetMain(tableName string, userKey string, uuidKey string) Connection
- func (connection *Connection) GetNotification(tableName string, userKey string, uuidKey string) Connection
- func (connection *Connection) GetTraffic(tableName string, userKey string, uuidKey string) Connection
Constants ¶
View Source
const MySQL = "mysql"
View Source
const Postgres = "postgres"
Variables ¶
This section is empty.
Functions ¶
func MysqlGetWhere ¶
func PostgresGetWhere ¶
Types ¶
type Connection ¶
type Connection struct { Table string PrimaryKey string UuidKey string IpAddress string Port string Database string UserName string Password string DbType string }
func (*Connection) GetMain ¶
func (connection *Connection) GetMain(tableName string, userKey string, uuidKey string) Connection
func (*Connection) GetNotification ¶
func (connection *Connection) GetNotification(tableName string, userKey string, uuidKey string) Connection
func (*Connection) GetTraffic ¶
func (connection *Connection) GetTraffic(tableName string, userKey string, uuidKey string) Connection
Click to show internal directories.
Click to hide internal directories.