Class: SqlStmtLib::SqlTable
- Inherits:
-
Struct
- Object
- Struct
- SqlStmtLib::SqlTable
- Defined in:
- lib/sqlstmt/data.rb
Overview
:str is the full original string specifying the table, like ‘frog f’ or ‘frog AS f’ or ‘frog’ :name is the full name of the table :alias is the alias specified for the table, or if none is specified, it’s the same as :name
this may be the wrong approach, but for now at least, it seems the most intuitive/useful option
:index is used to specify a “USE INDEX” clause
Instance Attribute Summary collapse
-
#alias ⇒ Object
Returns the value of attribute alias.
-
#index ⇒ Object
Returns the value of attribute index.
-
#name ⇒ Object
Returns the value of attribute name.
-
#str ⇒ Object
Returns the value of attribute str.
Instance Attribute Details
#alias ⇒ Object
Returns the value of attribute alias
15 16 17 |
# File 'lib/sqlstmt/data.rb', line 15 def alias @alias end |
#index ⇒ Object
Returns the value of attribute index
15 16 17 |
# File 'lib/sqlstmt/data.rb', line 15 def index @index end |
#name ⇒ Object
Returns the value of attribute name
15 16 17 |
# File 'lib/sqlstmt/data.rb', line 15 def name @name end |
#str ⇒ Object
Returns the value of attribute str
15 16 17 |
# File 'lib/sqlstmt/data.rb', line 15 def str @str end |