Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Suggestion for docs, use named parameters #334

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

Draft
wants to merge 1 commit into
base: TDE_REL_17_STABLE
Choose a base branch
from

Conversation

AndersAstrand
Copy link
Collaborator

@AndersAstrand AndersAstrand commented May 14, 2025

I think it's very hard to quickly see what's going on with long lists of parameters to functions, so in our documentation we should instead use the named parameter syntax to make it clearer what's going on.

I updated one file just to show an example of what I mean, take a look at wal-encryption.md

@AndersAstrand AndersAstrand changed the title Suggestion for docs Suggestion for docs, use named parameters May 14, 2025
@AndersAstrand AndersAstrand added the documentation Improvements or additions to documentation label May 14, 2025
I think it's much easier to read if we use named parameters in our
example sql code, especially with functions that have many parameters.
@AndersAstrand AndersAstrand force-pushed the tde/suggestion-for-docs-named-parameters branch from 1e47261 to 9b23b51 Compare May 14, 2025 14:07
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.50%. Comparing base (0c151ea) to head (9b23b51).

❌ Your project status has failed because the head coverage (80.50%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@                Coverage Diff                 @@
##           TDE_REL_17_STABLE     #334   +/-   ##
==================================================
  Coverage              80.49%   80.50%           
==================================================
  Files                     22       22           
  Lines                   2605     2606    +1     
  Branches                 398      399    +1     
==================================================
+ Hits                    2097     2098    +1     
  Misses                   430      430           
  Partials                  78       78           
Components Coverage Δ
access 82.95% <ø> (ø)
catalog 87.55% <ø> (ø)
common 91.80% <ø> (ø)
encryption 75.70% <ø> (ø)
keyring 72.00% <ø> (ø)
src 66.74% <ø> (ø)
smgr 97.29% <ø> (+0.02%) ⬆️
transam ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

3 participants