lib/table_differ.rb
# pass a date or name fragment, receive the full snapshot name.
# it's ok to pass a snapshot name; it will be returned unchaged.
pass a date or name fragment, receive the full snapshot name.
it's ok to pass a snapshot name; it will be returned unchaged.
pass a date or name fragment receive the full snapshot name . it ' s ok to pass a snapshot name ; it will be returned unchaged .
def restore_snapshot name
      name = snapshot_name(name)
      raise "#{name} doesn't exist" unless connection.tables.include?(name)
      delete_all
      connection.execute("INSERT INTO #{table_name} SELECT * FROM #{name}")
    end
def restore_snapshot name name = snapshot_name ( name ) raise "#{name} doesn't exist" unless connection . tables . include? ( name ) delete_all connection . execute ( "INSERT INTO #{table_name} SELECT * FROM #{name}" ) end
pass a date or name fragment, receive the full snapshot name.
pass a date or name fragment receive the full snapshot name .
name
<not_specific>