elixir-sqlite / ecto_sqlite3

An Ecto SQLite3 adapter.
https://hexdocs.pm/ecto_sqlite3
MIT License
300 stars 45 forks source link

configurable datetime type #84

Closed greg-rychlewski closed 2 years ago

greg-rychlewski commented 2 years ago

Attempting to solve https://github.com/elixir-sqlite/ecto_sqlite3/issues/74.

Lets the user configure how they'd like to encode the datetime fields. The 2 accepted values are :iso8601 (current behaviour) and :text_datetime (not 100% sure about the name, please let me know if you'd it changed). Defaults to the current iso8601 encoding for backwards compatibility.