Skip to content

feat: support :time decode #58

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

Merged
merged 1 commit into from
Sep 30, 2021
Merged

feat: support :time decode #58

merged 1 commit into from
Sep 30, 2021

Conversation

sbaildon
Copy link
Contributor

@sbaildon sbaildon commented Sep 28, 2021

ecto_sqlite3 could not decode fields of type :time—now it can!

I added tests matching the formats the elixir docs presents in Time.from_iso8601/2

edit for posterity: :time is listed as a Ecto.Schema primitive type https://hexdocs.pm/ecto/Ecto.Schema.html#module-primitive-types

@warmwaffles
Copy link
Member

This looks okay to me. @kevinlang what do you think?

@kevinlang
Copy link
Member

LGTM! interesting - we already had the dumper, just not the loader, for :time

@kevinlang kevinlang merged commit 640c41d into elixir-sqlite:main Sep 30, 2021
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