Configuring SQL Schema to Return Dates as Strings Instead of JS Date Objects
I am curious to know how I can get SqlSchema & the internal DB driver it uses to return dates as "Strings" instead of converting them to JS
My ideal situation is that all date transformations would be handled by my Effect schema.
I dont like the idea of going db driver -> convert to Date -> Effect schema converts Date to Utc. There is now another layer I need to worry about (pg driver doing date conversions). I'd much prefer leaving all Date stuff to a single layer (Effect schema)
Date. My ideal situation is that all date transformations would be handled by my Effect schema.
I dont like the idea of going db driver -> convert to Date -> Effect schema converts Date to Utc. There is now another layer I need to worry about (pg driver doing date conversions). I'd much prefer leaving all Date stuff to a single layer (Effect schema)
By having this extra layer I now need to ensure my environment is configured correctly handle Dates with JS
