supabase_schema_core 1.2.0
supabase_schema_core: ^1.2.0 copied to clipboard
Internal package for Supabase schema fetching and type mapping. Used by supafreeze and suparepo. Not intended for direct use.
Changelog #
1.2.0 - 2026-02-23 #
Added #
RpcFunctionInfo.copyWith()method for updating return type fieldsSchemaFetcher.mergeReturnTypes()static method to correctvoidreturn types usingpg_proccatalogSchemaFetcher._fetchRpcReturnTypes()to querypg_procfor accurate return type information
Changed #
fetchRpcFunctions()now queriespg_proccatalog to correct scalar return types (e.g.bool,int4) that PostgREST OpenAPI spec reports as empty schema (void)- Only active when
execute_sqlRPC function is available - Falls back to OpenAPI-only behavior when
execute_sqlis not configured
- Only active when
1.1.0 - 2026-02-11 #
Added #
RpcParamInfoclass for representing RPC function parametersRpcFunctionInfoclass for representing RPC function metadataSchemaFetcher.fetchRpcFunctions()to fetch RPC function definitions from OpenAPI specSchemaFetcher.parseRpcFunctions()to parse RPC functions from OpenAPI JSON
Changed #
- Extracted
_fetchOpenApiSpec()as a shared method for both table and RPC fetching