abstract class Showcase::Model::Base

Direct Known Subclasses

Defined in:

model/base.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(db : DB::Database) #

[View source]

Instance Method Detail

def create_employee(id : Int32 | Nil, team_id : Int32, name : String) : Nil #

[View source]
def create_mentor(id : Int32 | Nil, team_id : Int32, employee_id : Int32 | Nil, name : String) : Nil #

[View source]
abstract def create_tables #

[View source]
def max_id(table_name : String) : Int32 #

[View source]
def rows_count(table_name : String, team_id : Int32) : Int32 #

[View source]
def select_team_members(team_id : Int32) : Array(MemberRow) #

[View source]