class QT::Zvdict

Included Modules

Extended Modules

Defined in:

data/dict.cr

Constant Summary

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.find!(dname : String) : self #

[View source]
def self.new(id : Int32, dname : String, label : String = "", brief : String = "", privi : Int32 = 1, dtype : Int32 = 0) #

[View source]
def self.new(rs : DB::ResultSet) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.all(limit : Int32, offset = 0) : Array(self) #

[View source]
def self.all_books(limit : Int32, offset = 0) #

[View source]
def self.all_cores #

[View source]
def self.books_count : Int32 #

[View source]
def self.count : Int32 #

[View source]
def self.db #

def self.db_path #

[View source]
def self.find(dname : String) : self | Nil #

[View source]
def self.find_by_id(id, pkey = "id", db : DB_ = self.db) : self | Nil #

[View source]
def self.find_by_id!(id, pkey = "id", db : DB_ = self.db) : self | Nil #

[View source]
def self.from_rs(rs : DB::ResultSet) #

def self.get(*args_, args : Array | Nil = nil, db : DB_ = self.db, as as_type = self, &) #

[View source]
def self.get!(*args_, args : Array | Nil = nil, db : DB_ = self.db, as as_type = self, &) #

[View source]
def self.get_all(*args_, args : Array | Nil = nil, db : DB_ = self.db, as as_type = self, &) #

[View source]
def self.get_all(*args_, args : Array | Nil = nil, db : DB_ = self.db, as as_type = self) #

[View source]
def self.get_all_by_ids(ids : Enumerable, pkey : String = "id", db : DB_ = self.db, as as_type = self) #

[View source]
def self.get_dname(id : Int32) : String #

[View source]
def self.get_id(dname : String) : Int32 #

[View source]
def self.init_sql #

[View source]
def self.load(id : Int32) #

[View source]
def self.load(dname : String) #

[View source]
def self.schema #

Instance Method Detail

def brief : String #

[View source]
def brief=(value : String) #

[View source]
def bump_stats!(mtime : Int64, term_total : Int32) #

[View source]
def bump_stats!(mtime : Int64) #

[View source]
def dname : String #

[View source]
def dname=(value : String) #

[View source]
def dtype : Int32 #

[View source]
def dtype=(value : Int32) #

[View source]
def id : Int32 #

[View source]
def id=(value : Int32) #

[View source]
def label : String #

[View source]
def label=(value : String) #

[View source]
def main_terms : Int32 #

[View source]
def main_terms=(value : Int32) #

[View source]
def mtime : Int64 #

[View source]
def mtime=(value : Int64) #

[View source]
def privi : Int32 #

[View source]
def privi=(value : Int32) #

[View source]
def temp_terms : Int32 #

[View source]
def temp_terms=(value : Int32) #

[View source]
def term_avail : Int32 #

[View source]
def term_avail=(value : Int32) #

[View source]
def term_total : Int32 #

[View source]
def term_total=(value : Int32) #

[View source]
def to_json(jb) #

[View source]
def user_terms : Int32 #

[View source]
def user_terms=(value : Int32) #

[View source]
def users : String #

[View source]
def users=(value : String) #

[View source]