class QT::Zvterm

Included Modules

Extended Modules

Defined in:

data/term.cr

Constant Summary

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(rs : DB::ResultSet) #

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

def self.new #

[View source]

Class Method Detail

def self.db #

def self.db_path #

[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.init_sql #

[View source]
def self.mtime(rtime : Time = Time.utc) #

[View source]
def self.schema #

Instance Method Detail

def _ctx : String #

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

[View source]
def _flag : Int32 #

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

[View source]
def _idx : Int32 #

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

[View source]
def _prev : Int32 #

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

[View source]
def dic : Int32 #

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

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

[View source]
def id : Int32 | Nil #

[View source]
def id! : Int32 #

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

[View source]
def key : String #

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

[View source]
def mtime : Int64 #

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

[View source]
def mtime=(time : Time) #

[View source]
def prio : Int32 #

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

[View source]
def ptag : String #

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

[View source]
def ptag=(tags : Array(String)) #

[View source]
def tab : Int32 #

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

[View source]
def to_json(jb : JSON::Builder) #

[View source]
def uname : String #

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

[View source]
def utime #

[View source]
def val : String #

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

[View source]
def val=(vals : Array(String)) #

[View source]