Gary, el Pingüino Artefacto
Gary, el Pingüino Artefacto
Explore posts from servers
TtRPC
Created by Gary, el Pingüino Artefacto on 1/5/2025 in #❓-help
Type safe errors?
With the errorFormatter, these errors will be on every procedure even if the procedure doesn't procedure them
7 replies
TtRPC
Created by Gary, el Pingüino Artefacto on 1/5/2025 in #❓-help
Type safe errors?
Almost, but not quite there. For example, if a procedure requires some authentication, then in the error prop something like "AUTHENTICATION_ERROR", if the procedure also needs to validate permissions, then the error should be like "AUTHENTICATION_ERROR" | "MISSING_PERMISSIONS".
7 replies
HHono
Created by Gary, el Pingüino Artefacto on 1/3/2025 in #help
Type safety in middleware?
thanks for the help 😄
12 replies
HHono
Created by Gary, el Pingüino Artefacto on 1/3/2025 in #help
Type safety in middleware?
it's okay, I think it is a well known issue so I have to find another way
12 replies
HHono
Created by Gary, el Pingüino Artefacto on 1/3/2025 in #help
Type safety in middleware?
12 replies
HHono
Created by Gary, el Pingüino Artefacto on 1/3/2025 in #help
Type safety in middleware?
you can't narrow a type that isn't present...
12 replies
DTDrizzle Team
Created by san4d on 4/11/2024 in #help
Parameterized Interval in Where Clause
:c
4 replies
DTDrizzle Team
Created by san4d on 4/11/2024 in #help
Parameterized Interval in Where Clause
Hi dude, did you manage to get this working?
4 replies
DTDrizzle Team
Created by Gary, el Pingüino Artefacto on 11/16/2024 in #help
Brand ids?
I tried mapping with extras props and the sql tag, but I read on github that there is a bug there the .mapWith is not called on extra props
9 replies
DTDrizzle Team
Created by Gary, el Pingüino Artefacto on 11/16/2024 in #help
Brand ids?
I tried this way but it doesn't work with the query API
9 replies
DTDrizzle Team
Created by Gary, el Pingüino Artefacto on 11/16/2024 in #help
Brand ids?
Also could something like
export const usersTable = pgTable("users", {
// Possible?
id: uuid().primaryKey().transform((value) => `users_${value}`),
createdAt: timestamp().notNull().defaultNow(),
givenName: varchar({ length: 64 }).notNull(),
familyName: varchar({ length: 64 }).notNull(),
})
export const usersTable = pgTable("users", {
// Possible?
id: uuid().primaryKey().transform((value) => `users_${value}`),
createdAt: timestamp().notNull().defaultNow(),
givenName: varchar({ length: 64 }).notNull(),
familyName: varchar({ length: 64 }).notNull(),
})
9 replies