Thin wrappers around util functions. parseUUID is intentionally the panicking variant: any handler call site reachable here is expected to feed a UUID that is either (a) a sqlc round-trip of a DB-sourced value, or (b) a raw request input that has already been validated upstream. A panic here means
(s string)
| 295 | // (writes 400) — never feed raw chi.URLParam / request-body strings into |
| 296 | // parseUUID directly when the call writes to the database. |
| 297 | func parseUUID(s string) pgtype.UUID { return util.MustParseUUID(s) } |
| 298 | func uuidToString(u pgtype.UUID) string { return util.UUIDToString(u) } |
| 299 | func textToPtr(t pgtype.Text) *string { return util.TextToPtr(t) } |
| 300 | func ptrToText(s *string) pgtype.Text { return util.PtrToText(s) } |
no outgoing calls