Sha256: 574c7fb38517dc78f1010acf5bf9ca20c80c2f729f6b0a52172144c1146df540

Contents?: true

Size: 821 Bytes

Versions: 5

Compression:

Stored size: 821 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

    # an array of Index objects holding the meta informationa about the indexes
    # on this table
    attr_accessor :indexes

    # an array of Column objects holding the meta information about the columns
    # in this table
    attr_accessor :columns

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
amalgalite-0.2.0 lib/amalgalite/table.rb
amalgalite-0.2.2 lib/amalgalite/table.rb
amalgalite-0.2.1 lib/amalgalite/table.rb
amalgalite-0.2.3 lib/amalgalite/table.rb
amalgalite-0.2.4 lib/amalgalite/table.rb