Oryx::DBI::Association::Hash - DBI implementation of hash associations


Oryx documentation  | view source Contained in the Oryx distribution.

Index


NAME

Top

Oryx::DBI::Association::Hash - DBI implementation of hash associations

SYNOPSIS

Top

See Oryx::Association::Hash.

DESCRIPTION

Top

This provdes an implementation of hash associations with connections made via Oryx::DBI.

GUTS

Top

This is just a quick run-down of implementation details as of this writing to help introduce users to the database internals. These details may change with future releases and might have changed since this documentation was written.

A hash association is stored into the database as a separate table named for the tables linked and the role of the link:

  <source>_<role>_<target>

within the table there will be exactly three fields:

source_id

This will be the ID field for the source table in the link.

target_id

This will be the ID field for the target table in the link.

_key

This is the key used to identify the target from the source. This will be unique for the tuple (source_id, _key).

SEE ALSO

Top

Oryx, Oryx::DBI, Oryx::Association::Hash

AUTHOR

Top

Richard Hundt <richard NO SPAM AT protea-systems.com>

COPYRIGHT AND LICENSE

Top


Oryx documentation  | view source Contained in the Oryx distribution.