Hey! Thanks for the repo it's been saving me so much time!
I've got a table and a corresponding materialized view that I've spun off of it to add further indices. It seems like the codegen is not picking up on this new view and I was wondering if that's a limitation or just something I'm missing in the options? Similar to the following:
CREATE TABLE users
(
id INT NOT NULL,
name TEXT NOT NULL
);
CREATE MATERIALIZED VIEW users_mv AS
SELECT id,
name
FROM users;
My kysely-codegen
command is like this:
./node_modules/.bin/kysely-codegen \
--camel-case \
--dialect postgres \
--url $DATABASE_URL \
--out-file $SCHEMA_PATH
Once I've done this, I correctly see the types for Users
however there are no types for the materialize view, and thus, when I do something like db.selectFrom('users_mv')
it's giving me a TypeError.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too