Skip to content

Static analysis of queries? #451

@karlhorky

Description

@karlhorky

Hi @porsager ! 👋 Again, thanks for the continued effort on this library by yourself and team, really great!!

One thing that I've seen recently is squid, which promises, among other things:

Validate SQL queries in JavaScript and TypeScript code against your schema at build time 🚀

This is achieved by leveraging another library by Andy Wermke, postguard

I wanted to test the waters as to how open the Postgres.js project is to some kind of built-in static analysis of queries, to make sure that queries that get built can also run. I suppose the easiest would be TypeScript here.

cc @Minigugus

Alternatives considered:

One alternative that I've also considered here is to "only" improve the error messaging when things go wrong at runtime with a query: #450

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions