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

latest releases: @ts-safeql/test-utils@0.0.27, @ts-safeql/shared@3.4.4, @ts-safeql/eslint-plugin@3.4.4...
18 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.