Class: Axiom::Adapter::DataObjects

Inherits:
Object
  • Object
show all
Extended by:
Axiom::Adapter
Defined in:
lib/rom/support/axiom/adapter/data_objects.rb

Overview

Reopenend to add functionality that should eventually be puhsed down to Adapter::DataObjects proper, or whatever will be the base class.

Direct Known Subclasses

Postgres, Sqlite3

Constant Summary

Constants included from Axiom::Adapter

REGISTRY

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Axiom::Adapter

build, get, uri_scheme

Instance Attribute Details

#uriAddressable::URI (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The URI this adapter uses for establishing a connection

Returns:

  • (Addressable::URI)


23
24
25
# File 'lib/rom/support/axiom/adapter/data_objects.rb', line 23

def uri
  @uri
end

Instance Method Details

#gateway(relation) ⇒ Axiom::Relation::Gateway

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Wrap the given relation with a gateway

Parameters:

  • relation (Axiom::Relation)

    the relation to wrap with a gateway

Returns:

  • (Axiom::Relation::Gateway)


33
34
35
# File 'lib/rom/support/axiom/adapter/data_objects.rb', line 33

def gateway(relation)
  Axiom::Relation::Gateway.new(self, relation)
end