Awesome package! Really happy with its functionality! I do have some optimisation requests.
I have a setup where we use kysely-ctl and a kysely-config like so:
import { defineConfig } from "kysely-ctl";
import { db } from "./src/lib/database/index";
export default defineConfig({
kysely: db,
}
The db is setup using Postgres dialect that is not connecting via a connection string but via credentials.
export const db = new Kysely<DB>({
log: ["error"],
dialect: new PostgresDialect({
pool: new pg.Pool({
host: ENVIRONMENT.DB_HOST,
port: ENVIRONMENT.DB_PORT,
user: ENVIRONMENT.DB_USERNAME,
password: ENVIRONMENT.DB_PASSWORD,
database: ENVIRONMENT.DB_NAME,
}),
}),,
plugins,
});
I now have to maintain both DB_...
variables as a DATABASE_URL
in my env file.
It would be very lovely if codegen works by using the Kysely config as well by introspecting the DB defined in that config
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