Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping domains to custom types #222

Open
Stumblinbear opened this issue Dec 5, 2024 · 0 comments
Open

Mapping domains to custom types #222

Stumblinbear opened this issue Dec 5, 2024 · 0 comments

Comments

@Stumblinbear
Copy link

Stumblinbear commented Dec 5, 2024

We're using domains to enforce certain type constraints (specifically requiring a prefix on a string type), and are looking for a way to map this properly to the generated schema. For example, we have a domain called thread_id which has a CHECK(VALUE ~ '^thread_') constraint. In TS, this can map safely to thread_${string}, which we use for identifiers to get some additional safety instead of just using string.

Having a way to map this correctly would be extremely helpful, but I don't see a way we can do this properly

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant