Slinger
Slinger
DTDrizzle Team
Created by Slinger on 10/12/2023 in #help
Select * with an alteration TO_CHAR
I could not find something similar and better ask (sorry if was previously answered) It's there a way to select all the rows and without specifying all of them and also muttating a value in a simple way? For example select('*', {...}) I can write the query but just curious 😬
await db.select({ formatted: sql<string>`to_char(timestamp, 'DD Month YYYY')` }).from(data);
await db.select({ formatted: sql<string>`to_char(timestamp, 'DD Month YYYY')` }).from(data);
4 replies