class

QueryBuilder

Inherits Reference < Object

Constants

DEFAULT_PAGE_SIZE = 24
MAX_QUERY_CACHE = 128
SORTING_TYPES = {"id" => "id DESC", "id:desc" => "id DESC", "id:asc" => "id ASC", "newest" => "id DESC", "oldest" => "id ASC", "id:around:" => "distance ASC", "updated" => "updated_at DESC", "updated:desc" => "updated_at DESC", "updated:asc" => "updated_at ASC", "modified" => "updated_at DESC", "modified:desc" => "updated_at DESC", "modified:asc" => "updated_at ASC", "kudos" => "kudos DESC", "kudos:desc" => "kudos DESC", "kudos:asc" => "kudos ASC", "cum" => "kudos DESC", "cum:desc" => "kudos DESC", "cum:asc" => "kudos ASC", "score" => "kudos DESC", "score:desc" => "kudos DESC", "score:asc" => "kudos ASC", "random" => "RANDOM()"}

Constructors

new(db : DB::Database, text : String = "", blacklist : String = "")
Source

Instance methods

around_id
Source
around_id=(around_id : Int64)
Source
cache
Source
page_sql
Source
path_filters
Source
sorting
Source
sorting=(sorting : String)
Source
text
Source
text=(text : String)
Source
unknown_tags
Source
valid_tags
Source