module DatabaseWarden

Extended Modules

Defined in:

management/database_warden.cr

Instance Method Summary

Instance Method Detail

def ban_user(db : DB::Database, id : Int64, db_name : String, reason : String = "") : DB::ExecResult | Nil #

[View source]
def ban_user(db : DB::Database, name : String, db_name : String) : DB::ExecResult | Nil #

[View source]
def create_banned_user(db : DB::Database, id : Int64, db_name : String, reason : String = "") : DB::ExecResult | Nil #

[View source]
def find_user(db : DB::Database, id : Int64, db_name : String) : User | Nil #

[View source]
def find_user(db : DB::Database, name : String, db_name : String) : User | Nil #

[View source]
def get_banned_users(db : DB::Database, db_name : String, time : Time) : Array(User) | Nil #

[View source]
def get_banned_users(db : DB::Database, db_name : String) : Array(User) | Nil #

[View source]
def list_banned_users(db : DB::Database, db_name : String) : Array(User) | Nil #

[View source]
def list_ranked_users(db : DB::Database, db_name : String) : Array(User) | Nil #

[View source]
def set_user_rank(db : DB::Database, id : Int64, rank : Int32, db_name : String) : DB::ExecResult | Nil #

[View source]
def set_user_rank(db : DB::Database, name : String, rank : Int32, db_name : String) : DB::ExecResult | Nil #

[View source]
def unban_user(db : DB::Database, id : Int64, db_name : String) : DB::ExecResult | Nil #

[View source]
def unban_user(db : DB::Database, name : String, db_name : String) : DB::ExecResult | Nil #

[View source]