Upsert create/update joined table similar to Prisma
store
that I want to update its joined table shelf
or create it if its not there
```
await prisma.store
.update({...dynamic table name
const { tableName } = params;
const data = await dbPool.execute(sql`SELECT * FROM ${tableName}`);
const { tableName } = params;
const data = await dbPool.execute(sql`SELECT * FROM ${tableName}`);
Is there a way to call a prepared statement from within a transaction?
p1
. Is it possible to call it from within a transaction?
Something like
```typescript...Similar building of where clause to Prisma
How to add custom SQL queries during or after migration in drizzle schema?
Journal displays wrong driver (I think)
node_modules/drizzle-orm/mysql-core/db.d.ts(1,38): error TS2307: Cannot find module 'mysql2/promise' or its corresponding type declarations.
I went and checked where in my project the string 'mysql' was used (maybe I accidentally imported 'drizzle-orm/mysql-core' instead of pg-core'. This wasn't the case and the only file in my project referencing 'mysql' was ./drizzle/meta/_journal.json
, it has a first level key 'dialect', which is set to 'mysql'. From what I understand I should NOT alter these files directly since they are generated (right?). There for I checked my 'migrate' command...Expected 1 arguments, but got 2.ts(2554)
Bun with drizzle

Get raw query from toSQL
error: Cannot find module "@libsql/linux-x64-musl" from "~/todion/node_modules/libsql/index.js"

Updating with a subquery
``js
db.execute(sql
UPDATE feeds AS f...Prepared Statement - Neon Syntax Error
many to many relation problems
with
when using the RQB
and trying to access the table manually throws an referenced table
error
```ts
// schema
export const organizations = mysqlTable("organizations", {...Getting typescript errors with latest version

Select data from related table as well
Subqueries with INSERT - errors
Postgres read slaves?
Migrate using Neon and Sveltekit
Cannot find driver! mysql2 or pg.