database icon indicating copy to clipboard operation
database copied to clipboard

🚀 Feature: updateDocumentBy

Open zdanl opened this issue 2 years ago • 0 comments

🔖 Feature description

$resp = $DB::updateDocumentBy('db', 'collection', [
    Query.select(['foo', 'bar'])
], {
    'bar': 'bla',
    'splash': 'hash'
});

🎤 Pitch

Alternate way for SELECT statement when Document ID isn't available. Might be slower in terms of a INNER JOIN not looking for _uid as a PRIMARY KEY.

Allows for more natural thinking in programming, and for example, updateDocumentBy APIKey or any other UNIQUE Column, in our case, in a MariaDB Table.

I thought something like this

Screenshot 2023-12-05 at 13 46 58

Thoughts?

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

zdanl avatar Dec 05 '23 13:12 zdanl