Class: Amalgalite::View
- Inherits:
-
Object
- Object
- Amalgalite::View
- Defined in:
- lib/amalgalite/view.rb
Overview
a class representing the meta information about an SQLite view
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
the table name.
-
#schema ⇒ Object
the schame this view is assciated with.
-
#sql ⇒ Object
readonly
the original sql that was used to create this table.
Instance Method Summary collapse
-
#initialize(name, sql) ⇒ View
constructor
A new instance of View.
Constructor Details
#initialize(name, sql) ⇒ View
Returns a new instance of View.
20 21 22 23 |
# File 'lib/amalgalite/view.rb', line 20 def initialize( name, sql ) @name = name @sql = sql end |
Instance Attribute Details
#name ⇒ Object (readonly)
the table name
15 16 17 |
# File 'lib/amalgalite/view.rb', line 15 def name @name end |
#schema ⇒ Object
the schame this view is assciated with
12 13 14 |
# File 'lib/amalgalite/view.rb', line 12 def schema @schema end |
#sql ⇒ Object (readonly)
the original sql that was used to create this table
18 19 20 |
# File 'lib/amalgalite/view.rb', line 18 def sql @sql end |