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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mode parameter (#29) #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mariadb-ThienLy
Copy link
Contributor

@mariadb-ThienLy mariadb-ThienLy commented Jul 12, 2024

This mode is using for enforcing limitNumber or offsetNumber.
- "replace": Replace existing value. If not existing, it will be inserted.
- "insert": Insert if limit or offset are not existing,
- "cap": Insert if not existing and if higher it is lowered to the defined value.

The default is cap if not defined.

@mariadb-ThienLy mariadb-ThienLy force-pushed the feat/replaceable branch 2 times, most recently from 2da031d to f13ab83 Compare July 18, 2024 09:14
@mariadb-ThienLy mariadb-ThienLy changed the title Add replaceable option (#29) Add mode parameter (#29) Jul 18, 2024
@mariadb-ThienLy
Copy link
Contributor Author

In hindsight, I think a mode parameter would be more robust.

This mode is using for enforcing `limitNumber` or `offsetNumber`.
  - "replace": Replace existing value. If not existing, it will be inserted.
  - "insert": Insert if limit or offset are not existing,
  - "cap": Insert if not existing and if higher it is lowered to the defined value.

The default is `cap` if not defined.
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

Successfully merging this pull request may close these issues.

None yet

1 participant