Class: Postspec::EmptyFrame

Inherits:
Frame
  • Object
show all
Defined in:
lib/postspec/frame.rb

Instance Attribute Summary

Attributes inherited from Frame

#anchors, #ids, #parent, #pop_sql, #postspec, #push_sql, #search_path

Instance Method Summary collapse

Methods inherited from Frame

#dump, #schema

Constructor Details

#initialize(postspec) ⇒ EmptyFrame

Returns a new instance of EmptyFrame.



141
142
143
144
# File 'lib/postspec/frame.rb', line 141

def initialize(postspec)
  push_sql = pop_sql = postspec.render.delete_tables(postspec.tables.map(&:uid))
  super(postspec, nil, nil, push_sql, pop_sql, {}, nil)
end

Instance Method Details

#transaction?Boolean

Returns:

  • (Boolean)


139
# File 'lib/postspec/frame.rb', line 139

def transaction?() false end