Fixes timestamp scanning error reported in GH-88 where DATETIME columns were being returned as strings instead of time.Time on macOS 13.5. Root cause: modernc.org/sqlite driver doesn't recognize mattn-style DSN parameters (_journal_mode, _foreign_keys). When these incompatible parameters are present, the driver ignores _time_format=sqlite on some platforms, causing DATETIME values to remain as strings. Solution: Use modernc's native _pragma syntax for all database options: - Changed _journal_mode=WAL to _pragma=journal_mode(WAL) - Changed _foreign_keys=ON to _pragma=foreign_keys(ON) - Kept _pragma=busy_timeout(30000) and _time_format=sqlite This ensures all parameters are properly recognized and DATETIME columns are automatically parsed to time.Time across all platforms. Fixes #88 Amp-Thread-ID: https://ampcode.com/threads/T-44d1817a-3709-4f1d-a27a-78bb2fa4d3dc Co-authored-by: Amp <amp@ampcode.com>
52 KiB
52 KiB