shultz🇮🇱
shultz🇮🇱
Explore posts from servers
DTDrizzle Team
Created by shultz🇮🇱 on 7/2/2024 in #help
relations.ts alway include column name
Currently drizzle does not include the column name in the introspected relation name in relations.ts if only one column references a certain table [tableName] and not [tableName]_[columnName]. This makes the naming unstable as in the future when another column that relates to the same table is added, the first relation name stops making sense. Can I configure drizzle to alway include the column name in the relation name?
2 replies
DTDrizzle Team
Created by shultz🇮🇱 on 5/11/2024 in #help
why is relations.ts not generated?
I updated drizzle-kit and run
drizzle-kit introspect:pg --connectionString=$SUPABASE_CONNECTION_STRING --driver=pg --out=src/clients/pg/.drizzle
drizzle-kit introspect:pg --connectionString=$SUPABASE_CONNECTION_STRING --driver=pg --out=src/clients/pg/.drizzle
yet see no relations.ts generated in the out directory. Any ideas?
1 replies
DTDrizzle Team
Created by shultz🇮🇱 on 7/20/2023 in #help
drizzle-kit introspect:pg Invalid input Only "pg" is available options for "--driver"
When attempting to introspect a neon pg db, I get a very cryptic message. npx drizzle-kit introspect:pg --connectionString=postgres://gbd:[email protected]/neondb
drizzle-kit: v0.19.9 drizzle-orm: v0.27.2 Invalid input Only "pg" is available options for "--driver"
5 replies