Make schema support optional #31

Open
opened 2026-09-01 20:34:25 +02:00 by c.fahner · 0 comments
Owner

Currently all Database implementations are required to provide the enforceSchema() method. This method can't be implemented for schemaless databases or a lot of NoSQL databases. The method should be moved into a separate Database\SchemaEnforceable interface to improve support for and interoperability with such databases.

This also allows the "ocd-conformance-tests" package to skip schema enforcement testing for these kinds of databases.

Currently all `Database` implementations are required to provide the `enforceSchema()` method. This method can't be implemented for schemaless databases or a lot of NoSQL databases. The method should be moved into a separate `Database\SchemaEnforceable` interface to improve support for and interoperability with such databases. This also allows the "ocd-conformance-tests" package to skip schema enforcement testing for these kinds of databases.
c.fahner added this to the v0.2 milestone 2026-09-01 20:34:25 +02:00
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#31
No description provided.