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

Adding support for persisting RawRepresentable #46

Closed
wants to merge 3 commits into from

Conversation

jeremyquinn
Copy link
Contributor

As requested, here is basic support for database encoding/decoding of RawRepresentable enum values.

Currently only two types are supported: Int and String.

While I beleive these are the most commonly used ones, it should be possible to support any type that is Codable.

@codecov-io
Copy link

Codecov Report

Merging #46 into master will decrease coverage by 0.26%.
The diff coverage is 4.54%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #46      +/-   ##
==========================================
- Coverage   30.05%   29.79%   -0.27%     
==========================================
  Files           6        7       +1     
  Lines        1364     1376      +12     
==========================================
  Hits          410      410              
- Misses        954      966      +12
Flag Coverage Δ
#SwiftKueryORM 29.79% <4.54%> (-0.27%) ⬇️
Impacted Files Coverage Δ
Sources/SwiftKueryORM/DatabaseDecoder.swift 11.11% <0%> (ø) ⬆️
...urces/SwiftKueryORM/RawRepresentable+Codable.swift 0% <0%> (ø)
Sources/SwiftKueryORM/DatabaseEncoder.swift 32.55% <50%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f3a95d...cc05e5e. Read the comment docs.

@EnriqueL8
Copy link
Contributor

Hey @jeremyquinn, could you rebase your commits on top of master? because the Date commit is already in master.

@jeremyquinn
Copy link
Contributor Author

jeremyquinn commented Jun 5, 2018 via email

@jeremyquinn
Copy link
Contributor Author

I made a mistake here testing this change.
This is not working, I am withdrawing the PR.

@jeremyquinn jeremyquinn closed this Jun 5, 2018
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