Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MySQLDriver driver is represented under DB_DRIVER // for MySQL. MySQLDriver = "mysql" // PostgresDriver driver is represented under // DB_DRIVER for postgres. PostgresDriver = "postgres" )
Variables ¶
View Source
var (
ErrQueryMessage = "Error executing sql query"
)
Functions ¶
func FilterRows ¶
func FilterRows(driver Driver, query *builder.Sqlbuilder, filters map[string][]params.Filter, table string) error
FilterRows
filterRows takes in the filters from the params set in http.Params If there is no filters set, an empty string will be returned. Returns errors.INVALID if the operator or column name was not found.
Types ¶
Click to show internal directories.
Click to hide internal directories.