Tech
03/10/2024, 7:07 PMgriffio
03/12/2024, 1:07 PMselect json_agg(c.city_name) FROM (SELECT * FROM City) c;
would return a json array ["Tokyo","Singapore",...]
🤫 See https://www.crunchydata.com/blog/generating-json-directly-from-postgres for IdeasTech
03/12/2024, 1:10 PM@kotlinx.serialization.Serializable
at the top of all the data classes and it works.
In SQLDelight you can do
CREATE TABLE Test(
id BIGSERIAL PRIMARY KEY,
test UUID AS @Contextual UUID
);
And that actually attaches @Contextual to the data class.Tech
03/12/2024, 1:11 PMTech
03/12/2024, 1:15 PM