Type Constraints in 65 lines of SQL

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • pg_jsonschema

    PostgreSQL extension providing JSON Schema validation

  • pg_graphql

    GraphQL support for PostgreSQL

  • One of the restrictions of composite types is that they can not contain an instance of themselves. So unfortunately, this is not currently possible.

    I had this issue when trying to implement an AST type for pg_graphql[1] back when it was written in SQL [2]. In the end we used a JSON type which was much less constrained. That might be solvable using pg_jsonschema [3] if you really wanted to have a good time though

    [1] https://github.com/supabase/pg_graphql

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • pg-sql-variants

    Variants types for PostgreSQL

  • serde

    Serialization framework for Rust

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts