Sha256: f7e4510c4856529620e2896c47aa0fdd13d921eb3d68b849adf420a103b5a1e2

Contents?: true

Size: 896 Bytes

Versions: 14

Compression:

Stored size: 896 Bytes

Contents

#--
# Copyright (c) 2008 Jeremy Hinegardner
# All rights reserved.  See LICENSE and/or COPYING for details.
#++

module Amalgalite
  #
  # a class representing the meta information about an SQLite table 
  #
  class Table
    # the schema object the table is associated with
    attr_accessor :schema

    # the table name
    attr_reader   :name

    # the original sql that was used to create this table
    attr_reader   :sql

    # hash of Index objects holding the meta informationa about the indexes
    # on this table.  The keys of the indexes variable is the index name
    attr_accessor :indexes

    # a hash of Column objects holding the meta information about the columns
    # in this table.  keys are the column names
    attr_accessor :columns

    def initialize( name, sql ) 
      @name    = name
      @sql     = sql
      @indexes = {}
      @columns = {}
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
amalgalite-0.4.0 lib/amalgalite/table.rb
amalgalite-0.5.0-x86-mswin32-60 lib/amalgalite/table.rb
amalgalite-0.4.2-x86-mswin32-60 lib/amalgalite/table.rb
amalgalite-0.4.2 lib/amalgalite/table.rb
amalgalite-0.4.1 lib/amalgalite/table.rb
amalgalite-0.5.1 lib/amalgalite/table.rb
amalgalite-0.5.0 lib/amalgalite/table.rb
amalgalite-0.5.1-x86-mswin32-60 lib/amalgalite/table.rb
amalgalite-0.7.0-x86-mswin32-60 lib/amalgalite/table.rb
amalgalite-0.6.0 lib/amalgalite/table.rb
amalgalite-0.7.0 lib/amalgalite/table.rb
amalgalite-0.6.0-x86-mswin32-60 lib/amalgalite/table.rb
amalgalite-0.7.1 lib/amalgalite/table.rb
amalgalite-0.7.1-x86-mswin32-60 lib/amalgalite/table.rb