Class: Amalgalite::View

Inherits:
Object
  • Object
show all
Defined in:
lib/amalgalite/view.rb

Overview

a class representing the meta information about an SQLite view

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

the table name



15
16
17
# File 'lib/amalgalite/view.rb', line 15

def name
  @name
end

#schemaObject

the schame this view is assciated with



12
13
14
# File 'lib/amalgalite/view.rb', line 12

def schema
  @schema
end

#sqlObject (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