Class: Upkeep::SQLGlot::TableRef
- Inherits:
-
Data
- Object
- Data
- Upkeep::SQLGlot::TableRef
- Defined in:
- lib/upkeep/sqlglot.rb
Instance Attribute Summary collapse
-
#alias ⇒ Object
readonly
Returns the value of attribute alias.
-
#alias_quote_style ⇒ Object
readonly
Returns the value of attribute alias_quote_style.
-
#catalog ⇒ Object
readonly
Returns the value of attribute catalog.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#name_quote_style ⇒ Object
readonly
Returns the value of attribute name_quote_style.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#alias ⇒ Object (readonly)
Returns the value of attribute alias
53 54 55 |
# File 'lib/upkeep/sqlglot.rb', line 53 def alias @alias end |
#alias_quote_style ⇒ Object (readonly)
Returns the value of attribute alias_quote_style
53 54 55 |
# File 'lib/upkeep/sqlglot.rb', line 53 def alias_quote_style @alias_quote_style end |
#catalog ⇒ Object (readonly)
Returns the value of attribute catalog
53 54 55 |
# File 'lib/upkeep/sqlglot.rb', line 53 def catalog @catalog end |
#name ⇒ Object (readonly)
Returns the value of attribute name
53 54 55 |
# File 'lib/upkeep/sqlglot.rb', line 53 def name @name end |
#name_quote_style ⇒ Object (readonly)
Returns the value of attribute name_quote_style
53 54 55 |
# File 'lib/upkeep/sqlglot.rb', line 53 def name_quote_style @name_quote_style end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema
53 54 55 |
# File 'lib/upkeep/sqlglot.rb', line 53 def schema @schema end |
Class Method Details
.from_native(value) ⇒ Object
61 62 63 64 65 66 67 68 69 70 |
# File 'lib/upkeep/sqlglot.rb', line 61 def self.from_native(value) new( catalog: value["catalog"], schema: value["schema"], name: value.fetch("name"), alias: value["alias"], name_quote_style: value["name_quote_style"], alias_quote_style: value["alias_quote_style"] ) end |
Instance Method Details
#qualified_name ⇒ Object
72 73 74 |
# File 'lib/upkeep/sqlglot.rb', line 72 def qualified_name [catalog, schema, name].compact.reject(&:empty?).join(".") end |