Channels
Delta Updates(somehow)?
(question) onConflictDoUpdate set columns values (Postgresql)
Problem with AT TIME ZONE
createdAt: timestamp("created_at", { mode: 'string' }).default((now() AT TIME ZONE 'utc'::text)),
createdAt: timestamp("created_at", { mode: 'string' }).default((now() AT TIME ZONE 'utc'::text)),
possible to have more than one migrate folder or more drizzle.config.ts
Columns are being stringified at random
numeric
and decimal
(exact precision) are input/output as a string
- real
and double precision
(variable precision) are input/output as numbers...New enum values must be committed before they can be used
error: unsafe use of new value "MY_ENUM" of enum type
followed by the hint of New enum values must be committed before they can be used
.
What I did to resolve is add COMMIT;
immediately after I add the enum in my preceding migrations.
...Create slug based on title field.
.$defaultFn((title) => createSlug(title))
but I am struggling to find a way to reference title in the defaultFn. Is there some way to do this?Problem with generating migrations
MySql 5.7
( sql question ) How do you join full tables with select columns from other table?
Cannot migrate/push after adding column to sqlite table
drizzle-kit push:sqlite
I get the following error :
```
drizzle-kit push:sqlite...
Help building queries based on multiple conditions from an array of objects
Postgres.js type error string/date
add a prefix to UUID?
product_9B4F49D6F35C49FEA0dCC579A8ED4755
...[BUG?] Handling Postgresql schemas when using enums
Help needed for Nested Query
user
, podcast
, episodes
, and bookmarks
.
- bookmarks table has two columns - userId
and episodeId
- each podcast can have multiple episodeId
s, each episode can have only one podcastId
(one to many)
- each user can bookmark multiple episodeId
s, each episode can be bookmarked by multiple userId
s (many to many)
...Typescript performance in larger codebases?
multiple dbs, multiple drizzle client, not registering as multiple dbs
keys
schema imported under apiDb
, it worked perfectly fine. db and its table works fine. Generated using t3
index.ts: https://paste.learnspigot.com/dicuhehiri.typescript
api-schema.ts: https://paste.learnspigot.com/guqayuviwe.php
schema.ts: https://paste.learnspigot.com/enufuvujuq.php...Setting triggers with drizzle