database
database copied to clipboard
🚀 Feature: updateDocumentBy
🔖 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
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?
- [X] I have read the Code of Conduct