class

QT::Zvterm

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

Constants

EPOCH = (Time.utc(2020, 1, 1, 0, 0, 0)).to_unix
SPLIT = 'ǀ'

Constructors

new(rs : DB::ResultSet)
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)

Class methods

db
db_path
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
init_sql
Source
mtime(rtime : Time = Time.utc)
Source
schema

Instance methods

_ctx
Source
_ctx=(value : String)
Source
_flag
Source
_flag=(value : Int32)
Source
_idx
Source
_idx=(value : Int32)
Source
_prev
Source
_prev=(value : Int32)
Source
dic=(value : Int32)
Source
dic=(dname : String)
Source
id=(value : Int32 | Nil)
Source
key=(value : String)
Source
mtime
Source
mtime=(value : Int64)
Source
mtime=(time : Time)
Source
prio
Source
prio=(value : Int32)
Source
ptag
Source
ptag=(value : String)
Source
ptag=(tags : Array(String))
Source
tab=(value : Int32)
Source
to_json(jb : JSON::Builder)
Source
uname
Source
uname=(value : String)
Source
utime
Source
val=(value : String)
Source
val=(vals : Array(String))
Source