Is it possible to have a common transaction between prisma and drizzle?
update multiple rows with uuid id's
Counting many-to-many items
Fetch data based on client's timezone.
timestamp with timezone
type, with +0
timezone. I've been fetching my data with the code below
``js
const statement = sql
WITH date_series AS (
SELECT generate_series(...Is there a way to create a unique constrain on a jsonb column in a table?
{ "en": "Girl", "ja": "女性" }
. I would like to set up the unique constraint to ensure that each row is unique based on label->>en
at least. Is this possible when defining the schema? Or do I need to restort to brute forcing it in the SQL?
I am using Drizzle ORM with node postrgesql....Is there a way to say a column value should come from another table?
D1: `drizzle-kit push` says changes applied but database unchanged
Are dynamic selects with type inference possible?
What will .array() do?
there is no unique or exclusion constraint matching the ON CONFLICT specification
Type inference breaking in drizzle-orm 0.32.0 ?
Compostie primary key of a composite primary key
Alias values rows in insert with mysql
Multiple primary keys error
i cant add more than 5-6 rows of data. is there a limit (using drizzle for d1 db)
db.insert(contactForm).values([{}, {}]
i can only add a limited 3-4-5 entries at a time. is this a limitation with drizzle or d1?
is there any other way to bulk insert data?
thanks!...Subquery not working
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1264600471063232523/Screenshot_2024-07-21_at_17.08.52.png)
array of number returning strings
price: numeric('price', { precision: 10 }).array()
price: numeric('price', { precision: 10 }).array()
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1264599842059976714/Screenshot_2024-07-21_at_16.59.33.png)
how to use booleans in dizzle?
Switched from bun to pnpm & now i have errors?
bun
so i made th desicion to switch to pnpm
. One of the scripts i'm written now has a type mismatches. Here is the error message:
Argument of type 'SQLiteTableWithColumns<{ name: "users"; schema: undefined; columns: { id: SQLiteColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "SQLiteText"; data: string; driverParam: string; notNull: true; hasDefault: false; ... 5 more ...; generated: undefined; }, object>; firstName: SQLiteColumn<...>; l...' is not assignable to parameter of type 'SQLiteTable<TableConfig>'.
So i switch from bun driver to better-sqlite3
. So SQLiteTableWithColumns
& SQLiteTable
? Huh? Anyone know what i have have wrong here?...![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1264434209804517376/image.png)