UUID insted of ID
Dynamic where query
where
query based on user input?
In Knex.js, we could do something like this:
```knex('questions')...Planetscale migration error

Drizzle-kit can't load env file via t3-env
SyntaxError: Cannot use import statement outside a module
in env.mjs
, which I find odd since it is explicitly marked as an ES module. Other than this, t3-env works fine with drizzle-orm.
Full Error:
```js
Reading config file 'F:\Projects\PROJECTNAME\drizzle.config.ts'...I need some guidance on joins
Best way to run safe raw queries when only having access to the table name?
db
Drizzle instance and the table name, what's the best way to perform a SELECT * FROM table
given only those two parameters? The sql
operator works by passing not the table name, but the schema (which I dont have access to) so I tried sql.raw
but it doesn't escape variables. I could escape them manually, but maybe there's an easier/better way.InferModel including relations?
How to declare 1-to-0:1 relation between tables?
one
seems to be for 1-to-1 relations.
Thanks!...How to suppress 'relation "x" already exists, skipping' logs during migration?

many to many doc example
Custom Function to Transform Subqueries is missing types
How to insert many rows with one-to-many relationships
artists
table, and at the same time insert each artist's songs into a songs
table. Each song would be linked to the artist ID, but the artist ID would be generated by the query itself. Any way to accomplish this with Drizzle?
Basically, I have data like this I want to insert:
```js
[...Drizzle migrations workflow with CICD and multi-dev teams
Query from table with where clause NOT IN another sub query?
how to empty a table (postgres)
``javascript
const emptied = await db.execute(sql
DELETE FROM featured_salons;`)...using in nest.js
"bind message supplies 1 parameters, but prepared statement \"\" requires 0"
``
const results = await drizzleDb
.select({ count: sql<number>
count(*)` })
.from(calls)
.where(...POSTGRES_URL_NON_POOLING vs POOLING
POSTGRES_URL_NON_POOLING
url to connect, is that correct?...Subquery in select
Error when running drizzle-kit generate:mysql