Sha256: 5a7b1c0d0fe0983fe6ef88fa6156ce74cd6b2b33bb9272a60517571ada49e08a

Contents?: true

Size: 834 Bytes

Versions: 5

Compression:

Stored size: 834 Bytes

Contents

module Alf
  #
  # Defines an in-memory relation data structure.
  #
  # A relation is a set of tuples; a tuple is a set of attribute (name, value)
  # pairs. The class implements such a data structure with full relational
  # algebra installed as instance methods.
  #
  # Relation values can be obtained in various ways, for example by invoking
  # a relational operator on an existing relation. Relation literals are simply
  # constructed as follows:
  #
  #     Alf::Relation[
  #       # ... a comma list of ruby hashes ...
  #     ]
  #
  # See main Alf documentation about relational operators.
  #
  class Relation
    include Iterator

    require "alf/relation/class_methods"
    require "alf/relation/instance_methods"

    DEE = Relation.coerce([{}])
    DUM = Relation.coerce([])
  end # class Relation
end # module Alf

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.12.2 lib/alf/relation.rb
alf-0.12.1 lib/alf/relation.rb
alf-0.12.0 lib/alf/relation.rb
alf-0.11.1 lib/alf/relation.rb
alf-0.11.0 lib/alf/relation.rb