Access to native commands #14

Open
opened 2026-08-07 15:23:54 +02:00 by c.fahner · 0 comments
Owner

Currently the ORM has no way to work around its limitations. By definition an ORM is always playing catch-up with database features or optimizations.

Collections should (optionally) be able to implement an interface that allows executing native commands (which could be cursor-based, a WriteCommand or a generic Command).

This interface should also expose a unique database identifier to allow remaining compatible with multiple databases. This identifier should be checked before sending any command to avoid allocating multiple commands in-memory of which at most one will be used.

The interface has to be optional as it does not make sense for every implementation (such as the in-memory implementation).

Currently the ORM has no way to work around its limitations. By definition an ORM is always playing catch-up with database features or optimizations. Collections should (optionally) be able to implement an interface that allows executing native commands (which could be cursor-based, a `WriteCommand` or a generic `Command`). This interface should also expose a unique database identifier to allow remaining compatible with multiple databases. This identifier should be checked before sending any command to avoid allocating multiple commands in-memory of which at most one will be used. The interface has to be optional as it does not make sense for every implementation (such as the in-memory implementation).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
slendium/ocd#14
No description provided.