Documentation ¶
Index ¶
- Constants
- func Contains(key string, value interface{}) string
- func Equals(key string, value interface{}) string
- func GenerateWhereClause(query string, where map[string]interface{}) string
- func GreaterThan(key string, value interface{}) string
- func GreaterThanEqualTo(key string, value interface{}) string
- func In(key string, value interface{}) string
- func Init(dbConfig *DBConfig) (*sqlx.DB, error)
- func LessThan(key string, value interface{}) string
- func LessThanEqualTo(key string, value interface{}) string
- func Lower(key string, value interface{}) string
- func NewMock() (*sqlx.DB, sqlmock.Sqlmock)
- func NotEqualsTo(key string, value interface{}) string
- func NotIn(key string, value interface{}) string
- func Null(key string, value interface{}) string
- func UpperRune(key string) string
- type DBConfig
Constants ¶
View Source
const ( POSTGRES_CONNECTED string = "Connected to Postgres" POSTGRES_NOT_CONNECTED string = "Unable to connect to Postgres" POSTGRES_CONFIG_ERR string = "Error in Postgres config" )
View Source
const DriverName = "postgres"
Variables ¶
This section is empty.
Functions ¶
func GenerateWhereClause ¶
GenerateWhereClause : helper function to Generate where Clause
func GreaterThan ¶
func GreaterThanEqualTo ¶
func LessThanEqualTo ¶
func NotEqualsTo ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.