pineappaul
pineappaul
Explore posts from servers
DTDrizzle Team
Created by pineappaul on 4/23/2024 in #help
Drizzle pg client throwing `scanner_yyerror` on push
UPDATE: This error will throw when trying to use array() with an enum. Here is the table definition:
export const grantMeta = pgTable("grant_meta", {
id: uuid("id").primaryKey(),
grantType: varchar("grant_type", { length: 256 }).notNull(),
categories: grantCategoryEnum("categories").array().default([]),
subjectType: mediaGrantSubjectTypeEnum("subject_type")
.notNull()
.default("TRACK"),
createdAt: timestamp("created_at").defaultNow().notNull(),
updatedAt: timestamp("updated_at")
.defaultNow()
.notNull()
.$onUpdate(() => sql`NOW()`),
});
export const grantMeta = pgTable("grant_meta", {
id: uuid("id").primaryKey(),
grantType: varchar("grant_type", { length: 256 }).notNull(),
categories: grantCategoryEnum("categories").array().default([]),
subjectType: mediaGrantSubjectTypeEnum("subject_type")
.notNull()
.default("TRACK"),
createdAt: timestamp("created_at").defaultNow().notNull(),
updatedAt: timestamp("updated_at")
.defaultNow()
.notNull()
.$onUpdate(() => sql`NOW()`),
});
When .array() is removed from categories and ins instead treated as a normal enum, the push works without error
2 replies
DTDrizzle Team
Created by g0053 on 4/19/2024 in #help
Drizzle Kit Studio: Object is not iterable
I am also getting this error (same error code) upon running drizzle-kit push:pg to my local postgres. Drizzle-Kit version 0.20.17 Drizzle-ORM version 0.30.9 using pg version 8.11.3 Also made sure there are no dashes (- )in any fields nor table names. What is most strange is that when this runs, drizzle will recognize the metadata from the journal and ask about each of the tables that should be created or replaced. After running through the whole, set I can notice two of the many tables get created on Drizzle-Studio, while the rest remain uncreated and the console throws the error user g0053 shared. You can see my package for drizzle db stuff and schema here: https://github.com/paulmikulskis/product-eng/tree/main/packages/db Thank you very much for any help!
25 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
@LeoMachado how do you plan on integrating the createCaller paradigm into your NextJS app? I might be totally missing the mark here, but it feels that this is an anti-pattern, so I am curious on your take there
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
I have not. I Will add shortly
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
@JacobMGEvans (Rustular CAO) @Roy Anger Video walkthrough as promised, with two replay recordings for demonstrating: - what happens when things don't work (Replay recording 1 👉 https://app.replay.io/recording/builderclerk-broken--beda20eb-378a-4000-9aa4-5b558d905a82) - what happens when things do work (Replay recording 2 👉 https://app.replay.io/recording/builderclerk-working-demo--dae89c78-6cef-45f9-862b-d9ce26abcde1) Video walkthrough (3-minutes): https://youtu.be/ct47SQF0NMo Would be great to know when you folks are all set with the Replay links so I can delete them.
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
The issue with createCaller is that this solution is somewhat of an anti-pattern, since we want to keep the tRPC Context as the "caller"
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
@NotLuksus I have Clerk working with tRPC in this example repo, however there is still one bug present in my implementation where the auth object on the tRPC router server-side is only updated upon a full-page reload. You can check the example repo here: https://github.com/paulmikulskis/popup
If you have a suggestion on how to complete the fix, please open a branch so all can benefit 🙏
The solution is likely due to needing to call auth() from the client-side state, but I am not 100% clear on how to do this just yet. Roy provided a reasonable approach that I want to dig into a bit more today for inserting the client-side Clerk auth state into the tRPC context. (see https://discord.com/channels/966627436387266600/1170848397570359376/1174696019720671304)
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
Discord is arguably one of the most confusing comms platforms too, my last start up we were Discord centric and it was a living hell, so we totally understand the thread spread
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
Whatever we can do to help the team troubleshoot the issue faster, here to help with as long as we have bandwidth !
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
After speaking with Roy last night, I will be releasing a video for the team @JacobMGEvans (Rustular CAO) demonstrating one symptom, as he said this will be useful. I can tag you when this goes up as well. Eating some breakfast before I get going
123 replies
TTCTheo's Typesafe Cult
Created by pineappaul on 11/14/2023 in #questions
TRPC NextJS Context - Middleware Reload?
do you think it is OK for your build to have the API tightly coupled with the NextJS app?
13 replies
TTCTheo's Typesafe Cult
Created by pineappaul on 11/14/2023 in #questions
TRPC NextJS Context - Middleware Reload?
I think that is the way to go unless you require having a separate API to do something like serve a mobile app
13 replies
TTCTheo's Typesafe Cult
Created by pineappaul on 11/14/2023 in #questions
TRPC NextJS Context - Middleware Reload?
here is my current implementation of tRPC + Clerk + Next app router if you want to see what we have for at least getting it working https://github.com/paulmikulskis/popup
13 replies
TTCTheo's Typesafe Cult
Created by pineappaul on 11/14/2023 in #questions
TRPC NextJS Context - Middleware Reload?
hey @eula1. , any luck?
13 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
I have Clerk + T3 fully integrated, except for a nasty bug we are stuck on. With this bug, authenticated requests to the TRPC server can only be made after logging in and refreshing the page. (see https://discord.com/channels/966627436387266600/1174091052102197398/1174091052102197398) No idea why!
123 replies
TTCTheo's Typesafe Cult
Created by pineappaul on 11/14/2023 in #questions
TRPC NextJS Context - Middleware Reload?
Hi @eula1 , I have not, and am still actively researching
13 replies