Class: ROM::SQL::Migration::Statement Private

Inherits:
Data
  • Object
show all
Defined in:
lib/rom/sql/migration/sql_migration.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

A single executable statement extracted from a .sql migration section, paired with the source line where it begins. The line is used to annotate backtraces when execution fails.

Instance Attribute Summary collapse

Instance Attribute Details

#line ⇒ Object (readonly)

Returns the value of attribute line

Returns:

  • (Object) —

    the current value of line



15
16
17
# File 'lib/rom/sql/migration/sql_migration.rb', line 15

def line
  @line
end

#sql ⇒ Object (readonly)

Returns the value of attribute sql

Returns:

  • (Object) —

    the current value of sql



15
16
17
# File 'lib/rom/sql/migration/sql_migration.rb', line 15

def sql
  @sql
end