Class Amalgalite::Index
In: lib/amalgalite/index.rb
Parent: Object

a class representing the meta information about an SQLite index

Methods

new   unique?  

Attributes

columns  [RW]  the columns that make up this index, in index order
name  [R]  the name of the index
sequence_number  [RW]  sqlite sequence number of the index
sql  [R]  the sql statement that created the index
table  [RW]  the table the index is for
unique  [W]  is the index unique

Public Class methods

[Source]

    # File lib/amalgalite/index.rb, line 29
29:     def initialize( name, sql, table ) 
30:       @name             = name
31:       @sql              = sql
32:       @table            = table
33:       @columns          = []
34:       @sequence_number  = nil
35:       @unique           = nil
36:     end

Public Instance methods

[Source]

    # File lib/amalgalite/index.rb, line 38
38:     def unique?
39:       return @unique
40:     end

[Validate]