The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: remove executeSql error leverage centralized pgMetaGuard instead (#35635)
Andrew Valleteau27f3257c425b
diff --git a/apps/studio/data/sql/execute-sql-query.ts b/apps/studio/data/sql/execute-sql-query.tsindex 7fc547b3c83..5c321c5c3d4 100644--- a/apps/studio/data/sql/execute-sql-query.ts+++ b/apps/studio/data/sql/execute-sql-query.ts@@ -1,6 +1,6 @@import { QueryKey, useQuery, UseQueryOptions } from '@tanstack/react-query'-import { handleError as handleErrorFetchers, isValidConnString, post } from 'data/fetchers'+import { handleError as handleErrorFetchers, post } from 'data/fetchers'import { useSelectedProject } from 'hooks/misc/useSelectedProject'import { MB, PROJECT_STATUS } from 'lib/constants'import {@@ -42,7 +42,6 @@ export async function executeSql(headersInit?: HeadersInit): Promise<{ result: any }> {if (!projectRef) throw new Error('projectRef is required')- if (!isValidConnString(connectionString)) throw new Error('Project connection string is required')const sqlSize = new Blob([sql]).size// [Joshen] I think the limit is around 1MB from testing, but its not exactly 1MB it seems