Skip to content

@ts-safeql/eslint-plugin@0.0.25

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Mar 10:32
· 75 commits to main since this release
1c7dd11

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`;
  • Updated dependencies [5cf757a]

    • @ts-safeql/generate@0.0.10