Class: SqlStmtLib::SqlTable

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#aliasObject

Returns the value of attribute alias

Returns:

  • (Object)

    the current value of alias



15
16
17
# File 'lib/sqlstmt/data.rb', line 15

def alias
  @alias
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



15
16
17
# File 'lib/sqlstmt/data.rb', line 15

def index
  @index
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



15
16
17
# File 'lib/sqlstmt/data.rb', line 15

def name
  @name
end

#strObject

Returns the value of attribute str

Returns:

  • (Object)

    the current value of str



15
16
17
# File 'lib/sqlstmt/data.rb', line 15

def str
  @str
end