~/talk

Zero-cost Type Safety for your Database with Prisma

Talkat NodeTLV 2023 · on Wednesday, 2023-06-28· [typescript, databases]
slides:none on file

Demonstrates that Prisma provides zero-cost type safety by generating TypeScript types from a single schema, using Prisma schema -> codegen, Prisma Migrate to produce and run SQL, and Prisma Client for fully typed queries. Shows a working nested write that creates a user and a post, a findFirst with select that narrows the returned type, and the recent production release Prisma Client Extensions which adds a typed computed fullName field. Notes TypeScript adoption ≈50% and that code generation removes manual DTO overhead.

AI-written summary · about

  1. 0:00Start
  2. 1:38What is type safety?
  3. 7:59Catch errors at compile-time
  4. 8:40Refactor with confidence
  5. 9:07Autocompletion / Intellisense
  6. 9:35Types as documentation
  7. 10:00Enforces "Think before you code"
  8. 10:55Drawbacks?
  9. 16:09Prisma makes working with databases easy!
  10. 17:08Why "zero-cost" type safety?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.