Interactions-as-a-Service / d1-orm

A simple, strictly typed ORM, to assist you in using Cloudflare's D1 product
https://docs.interactions.rest/d1-orm/
Apache License 2.0
161 stars 10 forks source link

Add support for passing a unique column to queryBuilder for UPSERT st… #63

Closed azeemhassni closed 9 months ago

azeemhassni commented 1 year ago

The default primary key does work but is not suitable for all situations, there are use cases that need an email or an api key to be used as the conflicting column.

changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: 7200fa593ff87afdc8a4935b7e357e1f0d6a1b30

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

azeemhassni commented 9 months ago

Closing this PR as I don't have enough time to finish the work required here. 😞