github ts-safeql/safeql @ts-safeql/generate@0.0.10

latest releases: @ts-safeql/test-utils@0.0.30, @ts-safeql/shared@3.4.7, @ts-safeql/generate@3.4.7...
20 months ago

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`;

Don't miss a new safeql release

NewReleases is sending notifications on new releases.