struct

UserRepo

Inherits DB::Mappable < DB::Serializable < Struct < Value < Object

Constructors

create(name : String, email : String, pw_bcrypt : String, country : String) : self
Source

Class methods

fetch_all
Source
fetch_one(id : Int32) : self | Nil
Source
fetch_one(name : String) : self | Nil
Source
from_rs(rs : DB::ResultSet)
Source
update(id : Int32, name : String | Nil = nil, safe_name : String | Nil = nil, priv : Int32 | Nil = nil, pw_bcrypt : String | Nil = nil, country : String | Nil = nil, silence_end : Int64 | Nil = nil, donor_end : Int64 | Nil = nil, creation_time : Int64 | Nil = nil, latest_activity : Int64 | Nil = nil, preferred_mode : Int32 | Nil = nil, play_style : Int32 | Nil = nil, userpage_content : String | Nil = nil) : DB::ExecResult
Source

Instance methods

country
Source
country=(country : String)
Source
creation_time
Source
creation_time=(creation_time : Int64)
Source
donor_end
Source
donor_end=(donor_end : Int64)
Source
id=(id : Int32)
Source
latest_activity
Source
latest_activity=(latest_activity : Int64)
Source
name
Source
name=(name : String)
Source
play_style
Source
play_style=(play_style : Int32)
Source
preferred_mode
Source
preferred_mode=(preferred_mode : Int32)
Source
priv
Source
priv=(priv : Int32)
Source
pw_bcrypt
Source
pw_bcrypt=(pw_bcrypt : String)
Source
safe_name
Source
safe_name=(safe_name : String)
Source
silence_end
Source
silence_end=(silence_end : Int64)
Source
userpage_content
Source
userpage_content=(userpage_content : String | Nil)
Source