DT
Drizzle Team
help
drizzle-kit doesn't seems picking up the default config TS (up:pg)
Looking for more? Join the community!
DT
Drizzle Team
help
DT
Drizzle Team
help
Want results from more Discord servers?
Recommended PostsBuild queries dynamically with conditions.How to build query on the basis of if-else conditions? I have tried doing it as below
```
let dbQuerdrizzle-kit: Error: Cannot find module 'drizzle-orm/version'Hi there, when I run the following command: `pnpx drizzle-kit generate:pg`, I get the following erroConditional logic within template strings not supported on raw MySQL queryI am trying to execute raw SQL query with some conditional logic but it always fails. It's working fexecuting an `update` statement does not use `.onUpdateNow()` defined in schemaHello everyone 🙂
I have the following schema for my `USERS` table:
```ts
export const users = mysqHelp with raw queryThe following query is all raw. Is there a way to make SQL raw only the part of the `where` clause? Create GIN index in PostgresI need to create this index in postgres:
```sql
CREATE INDEX users_name_gin_trgm_idx ON users USINGHow to plus 1 to the current value of a column when updateHow to plus 1 to the current value of a column when updating a recordOrdering by a string column but coercing it to a number for orderingI have a column that mostly contains numbers with only a very few exceptions and want to apply order