Patch Changes
-
5cf757a: add support for enums. for example, given the following schema:
CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy'); CREATE TABLE person ( ..., mood mood NOT NULL );
we get the exact enum type:
sql<{ mood: "sad" | "ok" | "happy" }[]>`SELECT mood FROM person`;