Elixir's Ecto :utc_datetime maps to Postgres TIMESTAMP WITHOUT TIME ZONE — Ecto's contract is that the value is UTC, but the column itself is naive. sqlx's DateTime<Utc> binds/reads as TIMESTAMPTZ, so the read failed with "mismatched types ... TIMESTAMPTZ is not compatible with SQL type TIMESTAMP". Read as NaiveDateTime and reattach UTC at the decode boundary, keeping the downstream DateTime<Utc> signature. Test bind goes the other direction — bind .naive_utc() against the TIMESTAMP column. |
||
|---|---|---|
| .. | ||
| bin | ||
| band_config.rs | ||
| db.rs | ||
| decoder.rs | ||
| fetcher.rs | ||
| grid.rs | ||
| lib.rs | ||
| pipeline.rs | ||
| region.rs | ||
| scorer.rs | ||
| scores_file.rs | ||
| sounding_params.rs | ||