module Hypostasis::DataModels::ColumnGroup
Public Instance Methods
for_column_group(column_group, id = nil)
click to toggle source
# File lib/hypostasis/data_models/column_group.rb, line 11 def for_column_group(column_group, id = nil) name.to_s + '\\' + Hypostasis::Tuple.new(get_class_name(column_group), get_object_id(column_group, id)).to_s end
for_field(document, field, type)
click to toggle source
# File lib/hypostasis/data_models/column_group.rb, line 15 def for_field(document, field, type) for_column_group(document) + '\\' + Hypostasis::Tuple.new(field.to_s, type.to_s).to_s end
transact() { |tr| ... }
click to toggle source
# File lib/hypostasis/data_models/column_group.rb, line 5 def transact database.transact do |tr| yield tr end end