Skip to content

Conversation

qdm12
Copy link

@qdm12 qdm12 commented Feb 12, 2025

This drove me mad for a solid one minute in coreth where I tried to pass multiple times the option WithDatabaseMetadataKeys because, I'm a bit of a fool let's face it, but, in order to make this... you guessed it, FOOLPROOF, this PR changes the code a tiny bit to support specifying each option more than once without overriding the previous option passed. The alternative would had been to add a comment on each option, but it feels more appropriate to resolve it with code directly.

@qdm12 qdm12 changed the title chore(core/rawdb): allow to pass the same option multiple times chore(core/rawdb): InspectDatabase can receive multiple times the same option Feb 12, 2025
@qdm12 qdm12 enabled auto-merge (squash) February 12, 2025 12:22
Copy link
Collaborator

@ARR4N ARR4N left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending the update of the comment.

@qdm12 qdm12 merged commit 0c90568 into main Feb 12, 2025
5 checks passed
@qdm12 qdm12 deleted the qdm12/core/rawdb/inspect-database-nit-fix branch February 12, 2025 12:55
ARR4N added a commit that referenced this pull request Feb 12, 2025
ARR4N added a commit that referenced this pull request Feb 12, 2025
Missed in earlier PR:
#132 (comment)

Signed-off-by: Arran Schlosberg <[email protected]>
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.

2 participants