CSV import: preview with inferred types
postgres-studiofeat/csv-preview 2 agents in this conversationAdded a Preview step between choosing the file and importing. Rust samples the first 20 rows and infers a type per column; the dialog shows them in a grid where each header has a type menu. Import uses the chosen types.
I'll look at the inference and the preview in parallel, then test it in the app.
Preview · vendas-2025.csv · 20 of 4,812 rows
| idint ▾ | clientetext ▾ | datatext ▾ | valornumeric ▾ |
|---|---|---|---|
| 1 | Ana Prado | 31/12/2025 | 1.240,50 |
| 2 | Bruno Lima | 02/01/2026 | 89,90 |
| 3 | Carla Dias | 15/01/2026 | 432,00 |
| 4 | Davi Reis | 28/01/2026 | 15,75 |
cargo add chrono --features serde