struct
Marten::DB::Router::Hints
- Marten::DB::Router::Hints
- Struct
- Value
- Object
Overview
Hints passed to database routers when resolving connections or permissions.
Routers can use these hints to make more informed routing decisions. For example, the #instance hint allows a
router to stick to the database already associated with a specific model record.
Defined in:
marten/db/router/hints.crConstructors
Instance Method Summary
-
#instance : Marten::DB::Model?
Returns the model instance associated with the current operation, if any.
Constructor Detail
Instance Method Detail
def instance : Marten::DB::Model?
#
Returns the model instance associated with the current operation, if any.