hopesix
Explore posts from serversTTCTheo's Typesafe Cult
•Created by hopesix on 4/3/2024 in #questions
Can't set env variables in package.json scripts?
src/env.js 1:
3 replies
TTCTheo's Typesafe Cult
•Created by rampa2510 on 3/31/2024 in #questions
A guide for tRPC MySQL drizzle testing setup
If you find anything please let me know, I'm also starting unit testing for my app and have no idea where to start.
Seems like vitest is pretty widely used, right now I'm trying to get trpc + context working.
5 replies
DTDrizzle Team
•Created by hopesix on 2/7/2024 in #help
Can't edit datetime column in drizzle studio "Error: value.toISOString is not a function"
It's specifically an issue with how Drizzle Studio is displaying the Date column, it's altering it via JS
6 replies
DTDrizzle Team
•Created by hopesix on 2/7/2024 in #help
Can't edit datetime column in drizzle studio "Error: value.toISOString is not a function"
So I managed to edit the datetime inside of sequel ace connecting it to the db
6 replies
DTDrizzle Team
•Created by hopesix on 2/7/2024 in #help
Can't edit datetime column in drizzle studio "Error: value.toISOString is not a function"
6 replies
DTDrizzle Team
•Created by hopesix on 2/7/2024 in #help
Can't edit datetime column in drizzle studio "Error: value.toISOString is not a function"
I realized that I never specified
mode
on the datetime
columns, but they should have defaulted to 'string'
anyways.
I also connected via Sequel Ace and was able to edit and save a change in start_time
, the display of the columns is quite different in Sequel Ace (see my next post in this thread for screenshots)
However, if I have mode: "string"
set for
startTime: datetime("start_time", { mode: "string" }).notNull()
Then I can't seem to insert into my db as a new Date()
, Luxon's toJSDate()
or as an toISO()
or even just a string like temp
.
As soon as I specified mode: string
I seem to have lost the ability to insert bookings at all with Drizzle.6 replies
TTCTheo's Typesafe Cult
•Created by hopesix on 1/18/2024 in #questions
T3 tRPC tutorials/videos show useQuery / useMutation, but I only see query / mutate?
Figured it out, I was importing
import { api } from "@/trpc/server";
instead of import { api } from "@/trpc/react";
6 replies
TTCTheo's Typesafe Cult
•Created by hopesix on 1/18/2024 in #questions
T3 tRPC tutorials/videos show useQuery / useMutation, but I only see query / mutate?
6 replies
TTCTheo's Typesafe Cult
•Created by Cxstum on 11/29/2023 in #questions
What are the best resources to learn t3 stack right now (with Clerk if possible)??
I've been trying to poke around with this as well, I just finished a react course and I think I need to do a proper NextJS course before dipping my feet into T3 properly lol
5 replies