lib/btrieve/btrieve_session.rb in beezwax-0.1.4 vs lib/btrieve/btrieve_session.rb in beezwax-0.2.0

- old
+ new

@@ -1,9 +1,10 @@ class BtrieveSession SESSIONS = {} include Btrieve - attr_reader :pathname, :client_id, :cache, :model_classes, :btrieve_schema, :btrieve_meta + attr_reader :pathname, :client_id, :cache, :model_classes, :btrieve_schema + attr_accessor :btrieve_map def self.set_context(pathname) session = get_session if session raise Exception.new("The existing context in the current is set to a different pathname.") if(session.pathname != pathname) @@ -41,9 +42,9 @@ @table_cache = {} @pathname = pathname @client_id = "#{0.chr*12}#{[0x5257].pack('S')}#{rand(65535)}" btr_op(self, SET_DIRECTORY, NULL_BUFFER, NULL_BUFFER, @pathname, NULL_KEY) @btrieve_schema = BtrieveSchema.new(self) - @btrieve_meta = BtrieveMeta.new(self) + @btrieve_map = BtrieveMap.new() end end