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

Hba records simplification #157

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

pgiraud
Copy link
Member

@pgiraud pgiraud commented Dec 5, 2024

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.58%. Comparing base (9bad2e0) to head (998f2fa).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #157      +/-   ##
==========================================
- Coverage   97.60%   97.58%   -0.02%     
==========================================
  Files          10       10              
  Lines        1211     1201      -10     
==========================================
- Hits         1182     1172      -10     
  Misses         29       29              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pgtoolkit/hba.py Show resolved Hide resolved
pgtoolkit/hba.py Outdated Show resolved Hide resolved
tests/test_hba.py Outdated Show resolved Hide resolved
@pgiraud pgiraud force-pushed the hba_records_simplification branch from 3246453 to 350c898 Compare December 6, 2024 09:16
pgtoolkit/hba.py Show resolved Hide resolved
pgtoolkit/hba.py Show resolved Hide resolved
@pgiraud pgiraud force-pushed the hba_records_simplification branch from 350c898 to fc5fbac Compare December 11, 2024 14:52
We follow the names used by postgresql
(https://www.postgresql.org/docs/current/auth-pg-hba-conf.html).

`databases` and `users` are accessible via properties though.
The values argument wasn't really useful.

It also makes Mypy happy with the following syntax:
HBARecord(**a_mapping)

The previous required syntax was:
HBARecord(values=a_mapping)
@pgiraud pgiraud force-pushed the hba_records_simplification branch from fc5fbac to 998f2fa Compare December 16, 2024 10:08
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.

3 participants