The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Remove template readme
Joshen Lim70ba81136a12
diff --git a/studio/data/network-restrictions/README.md b/studio/data/network-restrictions/README.mddeleted file mode 100644index 05a0cabfb4f..00000000000--- a/studio/data/network-restrictions/README.md+++ /dev/null@@ -1,49 +0,0 @@-# Templates for Tanstack Query queries & mutations--## Usage--1. Duplicate the files in the \_\_templates directory you need depending on your use case.-2. Rename the files to match your resource name.-3. Update the `resource` variables to match your resource name. Usually find and replace works great here if you use case sensitive search (`resource` then `Resource`)-4. Implement your `queryFn` function.--Referencing the other files in the `data` directory is a good way to see how to use the library.--### SQL queries and mutations--The dashboard often needs to query the users database directly. There are already some reusable hooks for this in `data/sql`. Reference the `data/fdw` directory for an example of how to use them.--Note that the query key of the `useExecuteSqlQuery` hook will be automatically filled with an md5 hash of the SQL query, unless you provide a name for the query.--## Files--### `resources-query.ts`--For queries that return a list of results.--> :warning: Should only be used for simple lists, as it does not include any pagination. `useInfiniteQuery` should be used instead.--### `resource-query.ts`--For getting a single item based on parameter(s). `id` is used in this example but can be updated to whatever is needed.--### `resource-update-mutation.ts`--For updating a resource. This can easily be adapted to work for create, delete, or any verb that is needed. You may need to modify the `invalidateQueries` section depending on your use case. For example removing:--```ts-queryClient.invalidateQueries(resourceKeys.resource(projectRef, id))-```--if you are creating a new resource.--### `keys.ts`--Standardized keys for use with `useQuery` and `invalidateQueries`. This is not required but is a good way to keep things consistent.--## Learning Resources--- [Tanstack Query Docs](https://tanstack.com/query/v4/docs/react/overview)-- [TkDodo's Blog Posts](https://tanstack.com/query/v4/docs/react/community/tkdodos-blog)--The blog posts in particular are very helpful for learning best practices and how to use the library effectively.