mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-27 20:04:23 +01:00
PR #1442 added support for using time.Time as query parameters. Scanning time.Time values from query results still fails: `sql: Scan error on column index 4, name "mod_time": unsupported Scan, storing driver.Value type string into type *time.Time` This change modifies the `toGoValue` function to detect RFC3339 formatted datetime strings and convert them back to time.Time objects when reading from the database. This provides complete roundtrip support for time.Time values. Also added boolean support by converting Go bool values to integers (0 for false, 1 for true) when binding parameters, following SQLite's convention for representing boolean values. Reviewed-by: Preston Thorpe (@PThorpe92) Closes #1465