class

QT::Zvdict

Inherits JSON::Serializable < DB::Mappable < DB::Serializable < Crorm::Model < Reference < Object

Constants

CACHED = {} of Int32 => self
DICT_IDS = {} of String => Int32

Constructors

find!(dname : String) : self
Source
new(id : Int32, dname : String, label : String = "", brief : String = "", privi : Int32 = 1, dtype : Int32 = 0)
Source
new(rs : DB::ResultSet)
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)

Class methods

all(limit : Int32, offset = 0) : Array(self)
Source
all_books(limit : Int32, offset = 0)
Source
all_cores
Source
books_count
Source
count
Source
db
db_path
Source
find(dname : String) : self | Nil
Source
find_by_id(id, pkey = "id", db : DB_ = self.db) : self | Nil
Source
find_by_id!(id, pkey = "id", db : DB_ = self.db) : self | Nil
Source
from_rs(rs : DB::ResultSet)
get(*args_, args : Array | Nil = nil, db : DB_ = self.db, as as_type = self, &)
Source
get!(*args_, args : Array | Nil = nil, db : DB_ = self.db, as as_type = self, &)
Source
get_all(*args_, args : Array | Nil = nil, db : DB_ = self.db, as as_type = self, &)
Source
get_all(*args_, args : Array | Nil = nil, db : DB_ = self.db, as as_type = self)
Source
get_all_by_ids(ids : Enumerable, pkey : String = "id", db : DB_ = self.db, as as_type = self)
Source
get_dname(id : Int32) : String
Source
get_id(dname : String) : Int32
Source
init_sql
Source
load(id : Int32)
Source
load(dname : String)
Source
schema

Instance methods

brief
Source
brief=(value : String)
Source
bump_stats!(mtime : Int64, term_total : Int32)
Source
bump_stats!(mtime : Int64)
Source
dname
Source
dname=(value : String)
Source
dtype
Source
dtype=(value : Int32)
Source
id=(value : Int32)
Source
label
Source
label=(value : String)
Source
main_terms
Source
main_terms=(value : Int32)
Source
mtime
Source
mtime=(value : Int64)
Source
privi
Source
privi=(value : Int32)
Source
temp_terms
Source
temp_terms=(value : Int32)
Source
term_avail
Source
term_avail=(value : Int32)
Source
term_total
Source
term_total=(value : Int32)
Source
to_json(jb)
Source
user_terms
Source
user_terms=(value : Int32)
Source
users
Source
users=(value : String)
Source