Does kysely convert Table names lowercase when it's building a query ?
When I try to run this code it tries to insert into "profile" table not "Profile":
Note: I have only extracted important parts
3 Replies
You're using the CamelCasePlugin, so yes it does in this case. As it should.
As far as I can see from the docs https://kysely-org.github.io/kysely/interfaces/CamelCasePluginOptions.html there is no configuration option for keeping table name as it's but camelcasing the column names. Is there a way I can achieve this ?
CamelCasePluginOptions | kysely
Documentation for kysely
Not currently, but we could probably add it easily. Could you open an issue in github?