News for hackers. Stuff that matters.
Re:Show HN: Kysely, a type-safe SQL query builder for TypeSc... by a_humean on Wednesday June 21, 2023 @12:41PM (#36420898)
These are literal string types. Its a feature of at least two languages that I know of:

Typescript: https://www.typescriptlang.org/docs/handbook/literal-types.h...

Scala: https://docs.scala-lang.org/sips/42.type.html

Typescript goes a step further has has things like template literal types: https://www.typescriptlang.org/docs/handbook/2/template-lite...

They are a little bit more than string mappings, and the mapping you do see is all codegen generated from the DB schema.

There are no comments on this comment yet.