Skip to content

Conversation

@7ttp
Copy link
Contributor

@7ttp 7ttp commented Dec 9, 2025

Exports a new DatabaseWithoutInternals<DB> utility type that strips the internal __InternalSupabase metadata key from Database types. This is useful for libraries and applications that need to define generic constraints on Database types without including Supabase's internal metadata. The pattern Omit<DB, '__InternalSupabase'> is already used extensively throughout the codebase, and this export provides a clean, documented way for external consumers to do the same.

Closes supabase/postgres-meta#1026

@7ttp 7ttp requested a review from a team as a code owner December 9, 2025 12:58
@7ttp
Copy link
Contributor Author

7ttp commented Dec 18, 2025

@mandarini 😅can u have a look at this? when available :D

@mandarini mandarini force-pushed the fix/database-without-internals-helper branch from f5a9697 to 01aef3a Compare December 18, 2025 14:51
@mandarini mandarini self-assigned this Dec 18, 2025
@mandarini mandarini requested a review from grdsdev December 18, 2025 15:03
@mandarini mandarini enabled auto-merge (squash) December 18, 2025 15:17
@coveralls
Copy link

Coverage Status

coverage: 95.367% (+14.0%) from 81.37%
when pulling 01aef3a on 7ttp:fix/database-without-internals-helper
into efca12c on supabase:master.

@mandarini mandarini merged commit e953e71 into supabase:master Dec 18, 2025
20 checks passed
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

Successfully merging this pull request may close these issues.

Title: __InternalSupabase type breaks generic database constraints for third-party libraries

4 participants