Channels
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
Multiple Where Clauses
Enum as primary key for roles (sqlite)
How can I get a better structured response when querying a table (many to many)?
orders
, order_lines
, and items
. order_lines
is a junction table. Here's how I'm currently fetching the data:
```typescript...Error on Query Filter: Types of property 'table' are incompatible.
MySqlColumn
and Column<ColumnBaseConfig<ColumnDataType, string>, object, object>
. Maybe I am missing something but I would appreaciate some help.How to do Computed Fields / Manipulate data at Query Level?
pgEnum conversion not working as expected
export const ApprovalRequestTypePgEnum = pgEnum('approval_request_type', ['CREDIT_NOTE']);
export const ApprovalRequestTypePgEnum = pgEnum('approval_request_type', ['CREDIT_NOTE']);
Filtering a jsonb with the shape Array<{id:string,name:string}>