Skip to content

Add configuration option to persist empty strings as is#794

Merged
andrykonchin merged 5 commits into
masterfrom
add-configuration-option-to-persist-empty-strings
Aug 18, 2024
Merged

Add configuration option to persist empty strings as is#794
andrykonchin merged 5 commits into
masterfrom
add-configuration-option-to-persist-empty-strings

Conversation

@andrykonchin

Copy link
Copy Markdown
Member

Add Config.store_empty_string_as_nil options that is true by default. If it's true - empty strings will be persisted as nil otherwise as is. DynamoDB added support of storing empty strings so this logic isn't required anymore.

Close #788

@andrykonchin andrykonchin force-pushed the add-configuration-option-to-persist-empty-strings branch 2 times, most recently from 98cf17a to 191ecff Compare August 18, 2024 14:02
@codecov

codecov Bot commented Aug 18, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.18%. Comparing base (3fc2fc7) to head (191ecff).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #794      +/-   ##
==========================================
+ Coverage   91.08%   91.18%   +0.10%     
==========================================
  Files          71       73       +2     
  Lines        3453     3496      +43     
==========================================
+ Hits         3145     3188      +43     
  Misses        308      308              

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

@andrykonchin andrykonchin force-pushed the add-configuration-option-to-persist-empty-strings branch from 191ecff to 4e20e64 Compare August 18, 2024 14:17
@andrykonchin andrykonchin merged commit ade8e73 into master Aug 18, 2024
@andrykonchin andrykonchin deleted the add-configuration-option-to-persist-empty-strings branch August 18, 2024 14:32
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.

Saving Empty Strings To The Database (non-key fields)

1 participant