pointers v0.5.0 Pointers View Source

A context for working with Pointers, a sort of global foreign key scheme.

Link to this section Summary

Functions

Return the provided pointer when it belongs to table queryable by the given table search term.

Returns a Pointer, either the one provided or a synthesised one pointing to the provided schema object. Does not hit the database or cause the pointer to be written to the database whatsoever.

Given a list of pointers which may or may have their pointed loaded, return a plan for preloading, a map of module name to set of loadable IDs.

Looks up the table for a given pointer

Link to this section Functions

Link to this function

assert_points_to!(pointer, term)

View Source

Return the provided pointer when it belongs to table queryable by the given table search term.

Returns a Pointer, either the one provided or a synthesised one pointing to the provided schema object. Does not hit the database or cause the pointer to be written to the database whatsoever.

Given a list of pointers which may or may have their pointed loaded, return a plan for preloading, a map of module name to set of loadable IDs.

Looks up the table for a given pointer