elitan
Help with CTE query
Can anyone help me transform this SQL to Kysely?
https://kyse.link/?p=s&i=Q7JBZIP6xMpYoEsHJSHi
7 replies
Kysely doesn't work in jest/test environment
For some reason Kysely does not work when I'm running test via Jest. I have a simple Express application and all
db.selectFrom(...
commands just times out. I tried to log things via:
but nothing is logged.
When I start the server as usuall, Kysely works as expected.
Any idea on how to debug or what could cause this issue?4 replies
camelCase plugin with a strangely named column
We have a column named
cl_companyID
(I'm as confused as you) and I have issues with the camelCase plugin because it thinks the name is cl_company_id
.
Is there a way around this, without renaming the column?
I was thinking maybe we could add support with some kind of lookup table with weird names for the plugin to respect.21 replies
Build a basic Kysely Plugin
Hi, I need some help with a basic plugin I want to build. It's an encrypt/decrypt plugin.
This is high level on how I want it to work:
- Before data is written to the database, encrypt it
- Before data is read back, decrypt it.
This should only work for string values.
The trick is, not all columns should be encrypted. I'm fine defining tables/columns this will be applied to.
Maybe the plugin should have a encrypt function, decrypt function, and a list of table/column pairs this is applicable for?
Can anyone help me with some high level help on how to build this?
12 replies