Class: TypedDag::Sql::InsertClosureOfDepth::Sql

Inherits:
Object
  • Object
show all
Defined in:
lib/typed_dag/sql/insert_closure_of_depth.rb

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ Sql

Returns a new instance of Sql.



9
10
11
# File 'lib/typed_dag/sql/insert_closure_of_depth.rb', line 9

def initialize(configuration)
  self.helper = ::TypedDag::Sql::Helper.new(configuration)
end

Instance Method Details

#sql(depth) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/typed_dag/sql/insert_closure_of_depth.rb', line 13

def sql(depth)
  if helper.mysql_db?
    sql_mysql(depth)
  else
    sql_postgresql(depth)
  end
end