class QT::Zvdict
- QT::Zvdict
- Reference
- Object
Included Modules
- Crorm::Model
- DB::Mappable
- DB::Serializable
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
data/dict.crConstant Summary
-
CACHED =
{} of Int32 => self
-
DICT_IDS =
{} of String => Int32
Constructors
- .find!(dname : String) : self
- .new(id : Int32, dname : String, label : String = "", brief : String = "", privi : Int32 = 1, dtype : Int32 = 0)
- .new(rs : DB::ResultSet)
- .new(pull : JSON::PullParser)
Class Method Summary
- .all(limit : Int32, offset = 0) : Array(self)
- .all_books(limit : Int32, offset = 0)
- .all_cores
- .books_count : Int32
- .count : Int32
- .db
- .db_path
- .find(dname : String) : self | Nil
- .find_by_id(id, pkey = "id", db : DB_ = self.db) : self | Nil
- .find_by_id!(id, pkey = "id", db : DB_ = self.db) : self | Nil
- .from_rs(rs : DB::ResultSet)
- .get(*args_, args : Array | Nil = nil, db : DB_ = self.db, as as_type = self, &)
- .get!(*args_, args : Array | Nil = nil, db : DB_ = self.db, as as_type = self, &)
- .get_all(*args_, args : Array | Nil = nil, db : DB_ = self.db, as as_type = self, &)
- .get_all(*args_, args : Array | Nil = nil, db : DB_ = self.db, as as_type = self)
- .get_all_by_ids(ids : Enumerable, pkey : String = "id", db : DB_ = self.db, as as_type = self)
- .get_dname(id : Int32) : String
- .get_id(dname : String) : Int32
- .init_sql
- .load(id : Int32)
- .load(dname : String)
- .schema
Instance Method Summary
- #brief : String
- #brief=(value : String)
- #bump_stats!(mtime : Int64, term_total : Int32)
- #bump_stats!(mtime : Int64)
- #dname : String
- #dname=(value : String)
- #dtype : Int32
- #dtype=(value : Int32)
- #id : Int32
- #id=(value : Int32)
- #label : String
- #label=(value : String)
- #main_terms : Int32
- #main_terms=(value : Int32)
- #mtime : Int64
- #mtime=(value : Int64)
- #privi : Int32
- #privi=(value : Int32)
- #temp_terms : Int32
- #temp_terms=(value : Int32)
- #term_avail : Int32
- #term_avail=(value : Int32)
- #term_total : Int32
- #term_total=(value : Int32)
- #to_json(jb)
- #user_terms : Int32
- #user_terms=(value : Int32)
- #users : String
- #users=(value : String)
Constructor Detail
def self.new(id : Int32, dname : String, label : String = "", brief : String = "", privi : Int32 = 1, dtype : Int32 = 0)
#
Class Method Detail
def self.get_all_by_ids(ids : Enumerable, pkey : String = "id", db : DB_ = self.db, as as_type = self)
#