bombillazo
bombillazo
Explore posts from servers
KKysely
Created by bombillazo on 1/18/2025 in #help
Generating dynamic raw query help
I think the issue is in using multiple sql instances, but om not sure how to then to insert the dynamic section that depends on the payload values
4 replies
KKysely
Created by dmt on 1/17/2025 in #help
Performance impact of "$if" ?
So is the performance more on the development? like TypeScript trying to consolidate the types? Or is it runtime performance impact?
7 replies
KKysely
Created by bombillazo on 1/15/2025 in #help
How can I join 2 tables where 1 side is a JSON property in a JSON column?
Hey @Igal thanks for the help, what would be the main differences between using sql'my_table.metadata->>'id' and eb.ref("my_table.metadata", "->>").key("id")??
6 replies
KKysely
Created by bombillazo on 1/15/2025 in #help
How can I join 2 tables where 1 side is a JSON property in a JSON column?
Solved it! Had to do this:
.innerJoin('table_2', (join) =>
join.onRef(
'table_2.id',
'=',
sql`my_table.metadata->>'id'`,
),
)
.innerJoin('table_2', (join) =>
join.onRef(
'table_2.id',
'=',
sql`my_table.metadata->>'id'`,
),
)
6 replies
KKysely
Created by bombillazo on 1/15/2025 in #help
How can I join 2 tables where 1 side is a JSON property in a JSON column?
The logic works, its TS that is giving the error but it is returning the expexted records
6 replies
DDeno
Created by bombillazo on 12/13/2024 in #help
Deno vs Node `Intl.DateTimeFormat().resolvedOptions()` discrepancies
perhaps som node dependency is conflicting
10 replies
DDeno
Created by bombillazo on 12/13/2024 in #help
Deno vs Node `Intl.DateTimeFormat().resolvedOptions()` discrepancies
One big difference I did when upgrading to V2 was that i was forced to add "nodeModulesDir": "auto", to our deno.jsonc file. Without it, deno run and deno compile would not be able to find many of the modules that previously worked.
10 replies
DDeno
Created by bombillazo on 12/13/2024 in #help
Issues migrating dependencies from v1.x to v2.x
seems like it was multiple isues at the same time, a dependency with incorrect version check, and I had to add "nodeModulesDir": "auto", to my deno.jsonc file and now it works
2 replies
DDeno
Created by bombillazo on 12/13/2024 in #help
Deno vs Node `Intl.DateTimeFormat().resolvedOptions()` discrepancies
Yup, We want to move to v2 anyways, seems like the necessary reason now
10 replies
DDeno
Created by bombillazo on 12/13/2024 in #help
Deno vs Node `Intl.DateTimeFormat().resolvedOptions()` discrepancies
No description
10 replies
DDeno
Created by bombillazo on 12/13/2024 in #help
Deno vs Node `Intl.DateTimeFormat().resolvedOptions()` discrepancies
Hey @bartlomieju! Before creating it, I tested running Deno 2.x and its working. We're currently on 1.46.3 due to some things needed to migrate but can confirm that it is not present int he current version. Perhaps its something worth documenting somewhere.
10 replies
DDeno
Created by bombillazo on 12/13/2024 in #help
Deno vs Node `Intl.DateTimeFormat().resolvedOptions()` discrepancies
Hey @bartlomieju excuse me for the tag, but being something as fundamental as dates, wanted to know your opinion/suggestion
10 replies
KKysely
Created by bombillazo on 9/26/2024 in #help
Kysely client usage and pooling question
Thanks for clarifying this. How does the "connection" method work?
7 replies
KKysely
Created by bombillazo on 9/26/2024 in #help
Kysely client usage and pooling question
The more I test out different setups, the more I am arriving to the conclusion that the only way to prevent this is using transactions? Is there no way with kysely to ensure the same connection is utilized byt the client for the same request? Another part to note is that we are using Supabase, which also has its own Pooler called Supavisor, Im not sure if that also plays into this behavior.
7 replies
DDeno
Created by bombillazo on 8/13/2024 in #help
Reset position of terminal cursor when calling io.writeAllSync()
I solved this, the command stdin was not piped, only stderr and stdout and seems like it was messing up the terminal cursor location
2 replies
DDeno
Created by bombillazo on 8/13/2024 in #help
How to log Deno.Command output in real time (not after command completes)
Or better yet how can I move the terminal cursor to the start after each new line?
6 replies
DDeno
Created by bombillazo on 8/13/2024 in #help
How to log Deno.Command output in real time (not after command completes)
A bit unrelated but is tehre any way to use the io Write funciton to write to teh start of the terminal line?
6 replies
DDeno
Created by bombillazo on 8/13/2024 in #help
How to log Deno.Command output in real time (not after command completes)
thanks, I did somehitn similar now, with a loop that just reads from the stdout reader.
6 replies
HHono
Created by bombillazo on 8/11/2024 in #help
Return early from middleware
So the error I had was unrelated to the return, returning normally early with the response object works!
3 replies
HHono
Created by bombillazo on 8/8/2024 in #help
Match both `/` and `/:id` routes the the same router
that did it! THank you so much!
6 replies