Database and collection access objects #28

Merged
c.fahner merged 14 commits from issues/15 into main 2026-08-31 16:35:13 +02:00
Owner

Resolves #15.

Adds Database, Collection, TypeInfo and Cursor

Resolves #15. Adds Database, Collection, TypeInfo and Cursor
c.fahner added this to the v0.1 milestone 2026-08-30 11:08:00 +02:00
README.md Outdated
@ -65,0 +101,4 @@
// add more to insert in bulk
];
$collection->startInsert($documents)
Author
Owner

Wrap in array here to make the example less indented

Wrap in array here to make the example less indented
c.fahner marked this conversation as resolved
README.md Outdated
@ -65,0 +121,4 @@
$updates = U::create([
'name' => $newName,
'modificationCount' => U::add(1),
'neverModifiedIndicator' => U::unset(),
Author
Owner

Doesn't do anything on SQL databases. Example would be better using a nested field.

Doesn't do anything on SQL databases. Example would be better using a nested field.
c.fahner marked this conversation as resolved
@ -0,0 +49,4 @@
/**
* Creates a new command that allows updating zero or more documents in a collection.
*
* Some implementations may support {@see Limitable} on updates.
Author
Owner

Should be {@see Collection\LimitableCommand}

Should be `{@see Collection\LimitableCommand}`
c.fahner marked this conversation as resolved
@ -0,0 +62,4 @@
/**
* Creates a new command that allows deleting zero or more documents from the collection.
*
* Some implementations may support {@see Limitable} on deletes.
Author
Owner

Should be {@see Collection\LimitableCommand}

Should be `{@see Collection\LimitableCommand}`
c.fahner marked this conversation as resolved
@ -0,0 +16,4 @@
/**
* Enforces a limit on the amount of documents affected, throwing if the command implementation
* does not support limits.
* @since 1.0
Author
Owner

Add @see LimitableCommand

Add `@see LimitableCommand`
c.fahner marked this conversation as resolved
@ -0,0 +34,4 @@
/**
* Suggests a limit for the amount of documents affected. Does nothing if the command implementation
* does not support limits.
* @since 1.0
Author
Owner

Add @see LimitableCommand

Add `@see LimitableCommand`
c.fahner marked this conversation as resolved
@ -0,0 +12,4 @@
/** @since 1.0 */
public function __construct(
/** @since 1.0 */
Author
Owner

Add to documentation that null essentially means "the level recommended by the database."

Add to documentation that `null` essentially means "the level recommended by the database."
c.fahner marked this conversation as resolved
src/Database.php Outdated
@ -0,0 +12,4 @@
/**
* Enforces the given schema for the given collection, creating one if it does not yet exist.
*
* {@see Schema\UpgradeOptions} can be used for more control over the behavior of the schema
Author
Owner

Should be {@see Database\UpgradeUptions}

Should be `{@see Database\UpgradeUptions}`
c.fahner marked this conversation as resolved
@ -0,0 +2,4 @@
namespace Slendium\Ocd;
/**
Author
Owner

Add short description

Add short description
c.fahner marked this conversation as resolved
c.fahner stopped working 2026-08-31 15:37:52 +02:00
30 minutes 14 seconds
c.fahner stopped working 2026-08-31 16:22:04 +02:00
13 minutes 13 seconds
c.fahner deleted branch issues/15 2026-08-31 16:35:13 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 43 minutes 27 seconds
c.fahner
43 minutes 27 seconds
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!28
No description provided.