Class: SqlStmtLib::SqlData
- Inherits:
-
Struct
- Object
- Struct
- SqlStmtLib::SqlData
- Defined in:
- lib/sqlstmt/data.rb
Instance Attribute Summary collapse
-
#called_get ⇒ Object
Returns the value of attribute called_get.
-
#distinct ⇒ Object
Returns the value of attribute distinct.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#group_by ⇒ Object
Returns the value of attribute group_by.
-
#having ⇒ Object
Returns the value of attribute having.
-
#ignore ⇒ Object
Returns the value of attribute ignore.
-
#into_table ⇒ Object
Returns the value of attribute into_table.
-
#joins ⇒ Object
Returns the value of attribute joins.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#order_by ⇒ Object
Returns the value of attribute order_by.
-
#outfile ⇒ Object
Returns the value of attribute outfile.
-
#replace ⇒ Object
Returns the value of attribute replace.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#stmt_type ⇒ Object
Returns the value of attribute stmt_type.
-
#straight_join ⇒ Object
Returns the value of attribute straight_join.
-
#tables ⇒ Object
Returns the value of attribute tables.
-
#tables_to_delete ⇒ Object
Returns the value of attribute tables_to_delete.
-
#values ⇒ Object
Returns the value of attribute values.
-
#where_behavior ⇒ Object
Returns the value of attribute where_behavior.
-
#wheres ⇒ Object
Returns the value of attribute wheres.
-
#with_rollup ⇒ Object
Returns the value of attribute with_rollup.
Instance Method Summary collapse
-
#initialize ⇒ SqlData
constructor
A new instance of SqlData.
- #initialize_copy(orig) ⇒ Object
Constructor Details
#initialize ⇒ SqlData
Returns a new instance of SqlData.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/sqlstmt/data.rb', line 29 def initialize self.tables = [] self.joins = [] self.wheres = [] self.where_behavior = :require self.fields = [] self.values = [] self.having = [] self.rows = [] self.tables_to_delete = [] self.ignore = '' self.outfile = '' self.called_get = false end |
Instance Attribute Details
#called_get ⇒ Object
Returns the value of attribute called_get
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def called_get @called_get end |
#distinct ⇒ Object
Returns the value of attribute distinct
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def distinct @distinct end |
#fields ⇒ Object
Returns the value of attribute fields
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def fields @fields end |
#group_by ⇒ Object
Returns the value of attribute group_by
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def group_by @group_by end |
#having ⇒ Object
Returns the value of attribute having
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def having @having end |
#ignore ⇒ Object
Returns the value of attribute ignore
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def ignore @ignore end |
#into_table ⇒ Object
Returns the value of attribute into_table
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def into_table @into_table end |
#joins ⇒ Object
Returns the value of attribute joins
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def joins @joins end |
#limit ⇒ Object
Returns the value of attribute limit
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def limit @limit end |
#order_by ⇒ Object
Returns the value of attribute order_by
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def order_by @order_by end |
#outfile ⇒ Object
Returns the value of attribute outfile
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def outfile @outfile end |
#replace ⇒ Object
Returns the value of attribute replace
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def replace @replace end |
#rows ⇒ Object
Returns the value of attribute rows
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def rows @rows end |
#stmt_type ⇒ Object
Returns the value of attribute stmt_type
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def stmt_type @stmt_type end |
#straight_join ⇒ Object
Returns the value of attribute straight_join
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def straight_join @straight_join end |
#tables ⇒ Object
Returns the value of attribute tables
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def tables @tables end |
#tables_to_delete ⇒ Object
Returns the value of attribute tables_to_delete
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def tables_to_delete @tables_to_delete end |
#values ⇒ Object
Returns the value of attribute values
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def values @values end |
#where_behavior ⇒ Object
Returns the value of attribute where_behavior
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def where_behavior @where_behavior end |
#wheres ⇒ Object
Returns the value of attribute wheres
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def wheres @wheres end |
#with_rollup ⇒ Object
Returns the value of attribute with_rollup
6 7 8 |
# File 'lib/sqlstmt/data.rb', line 6 def with_rollup @with_rollup end |
Instance Method Details
#initialize_copy(orig) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/sqlstmt/data.rb', line 44 def initialize_copy(orig) # without this call to super, any field that we aren't dup'ing here won't be copied super self.tables = orig.tables.dup self.joins = orig.joins.dup self.wheres = orig.wheres.dup self.fields = orig.fields.dup self.values = orig.values.dup self.having = orig.having.dup self.rows = orig.rows.dup end |