class ROM::HTTP::Relation

HTTP-specific relation extensions

Public Instance Methods

<<(*tuples)
Alias for: insert
delete() click to toggle source

@see Dataset#delete

# File lib/rom/http/relation.rb, line 62
def delete
  dataset.delete
end
exclude(*names) click to toggle source
# File lib/rom/http/relation.rb, line 38
def exclude(*names)
  with(schema: schema.exclude(*names))
end
insert(*tuples) click to toggle source

@see Dataset#insert

# File lib/rom/http/relation.rb, line 51
def insert(*tuples)
  dataset.insert(*tuples.map { |t| input_schema[t] })
end
Also aliased as: <<
prefix(prefix) click to toggle source
# File lib/rom/http/relation.rb, line 46
def prefix(prefix)
  with(schema: schema.prefix(prefix))
end
primary_key() click to toggle source
# File lib/rom/http/relation.rb, line 30
def primary_key
  schema.primary_key_name
end
project(*names) click to toggle source
# File lib/rom/http/relation.rb, line 34
def project(*names)
  with(schema: schema.project(*names.flatten))
end
rename(mapping) click to toggle source
# File lib/rom/http/relation.rb, line 42
def rename(mapping)
  with(schema: schema.rename(mapping))
end
update(*tuples) click to toggle source

@see Dataset#update

# File lib/rom/http/relation.rb, line 57
def update(*tuples)
  dataset.update(*tuples.map { |t| input_schema[t] })
end