Documentation ¶
Index ¶
Constants ¶
View Source
const ( TmFmtWithMS = "2006-01-02 15:04:05.999" NullStr = "NULL" )
View Source
const ( ColumnDeletedAt = "deleted_at" ColumnId = "id" ColumnName = "name" )
View Source
const ( ExprEqual = " = ?" ExprNotEqual = " != ?" ExprGreater = " > ?" )
View Source
const ( MYSQL = "mysql" POSTGRES = "postgres" SQLite = "sqlite3" )
View Source
const ( INSERT = "INSERT" SELECT = "SELECT" UPDATE = "UPDATE" DELETE = "DELETE" LEFTJOIN = "LEFT JOIN" RIGHTJOIN = "RIGHT JOIN" INNERJOIN = "INNER JOIN" )
View Source
const ( NotDeleted = ColumnDeletedAt + " IS " + NullStr WithNotDeleted = ` AND ` + NotDeleted )
Variables ¶
This section is empty.
Functions ¶
func ConvertParams ¶
Types ¶
type FilterExpression ¶
type FilterExpressions ¶
type FilterExpressions []FilterExpression
func (FilterExpressions) Build ¶
func (f FilterExpressions) Build() string
func (FilterExpressions) BuildSQL ¶
func (f FilterExpressions) BuildSQL() (string, []interface{})
type TimeStampModel ¶
type TimeStringModel ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.