Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 Feature: updateDocumentBy #364

Open
2 tasks done
zdanl opened this issue Dec 5, 2023 · 0 comments
Open
2 tasks done

馃殌 Feature: updateDocumentBy #364

zdanl opened this issue Dec 5, 2023 · 0 comments

Comments

@zdanl
Copy link

zdanl commented Dec 5, 2023

馃敄 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?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant