Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: fix formatting (#41054)

Pedro Rodrigues9a14405e7331
diff --git a/apps/docs/content/guides/storage/vector/querying-vectors.mdx b/apps/docs/content/guides/storage/vector/querying-vectors.mdx
index c968c60544e..788e4b48d5f 100644
--- a/apps/docs/content/guides/storage/vector/querying-vectors.mdx
+++ b/apps/docs/content/guides/storage/vector/querying-vectors.mdx
@@ -253,12 +253,12 @@ if (!error) {
```sql
-- Retrieve specific vectors by key
-SELECT
+select
key,
data as embedding,
metadata
-FROM s3_vectors.documents_openai
-WHERE key IN ('doc-1', 'doc-2', 'doc-3');
+from s3_vectors.documents_openai
+where key in ('doc-1', 'doc-2', 'doc-3');
```
</TabPanel>
@@ -308,14 +308,12 @@ do {
```sql
-- List all vectors with pagination
-SELECT
+select
key,
metadata
-FROM s3_vectors.documents_openai
-ORDER BY key ASC
-LIMIT 100
-OFFSET 0;
-
+from s3_vectors.documents_openai
+order by key asc
+limit 100 offset 0;
-- To paginate, increase OFFSET for next page:
-- OFFSET 100 for page 2, OFFSET 200 for page 3, etc.
```
diff --git a/apps/docs/content/guides/storage/vector/storing-vectors.mdx b/apps/docs/content/guides/storage/vector/storing-vectors.mdx
index c3ce2ed43b2..d354bf57ad0 100644
--- a/apps/docs/content/guides/storage/vector/storing-vectors.mdx
+++ b/apps/docs/content/guides/storage/vector/storing-vectors.mdx
@@ -271,8 +271,8 @@ if (!error) {
```sql
-- Delete vectors by key
-DELETE FROM s3_vectors.documents_openai
-WHERE key IN ('doc-1', 'doc-2');
+delete from s3_vectors.documents_openai
+where key in ('doc-1', 'doc-2');
```
</TabPanel>
diff --git a/apps/docs/content/troubleshooting/error-index-row-size-exceeds-btree-version-4-maximum-for-index-LMmoeU.mdx b/apps/docs/content/troubleshooting/error-index-row-size-exceeds-btree-version-4-maximum-for-index-LMmoeU.mdx
index f2cc1658061..de377b2e166 100644
--- a/apps/docs/content/troubleshooting/error-index-row-size-exceeds-btree-version-4-maximum-for-index-LMmoeU.mdx
+++ b/apps/docs/content/troubleshooting/error-index-row-size-exceeds-btree-version-4-maximum-for-index-LMmoeU.mdx
@@ -39,13 +39,13 @@ One of the measures of index efficiency is the ratio of index entries to the wid
The solution is simple: use some king of hashing to transfer the values to much narrower space. I.e. md5. The solution is simple, you build a functional index (=index by expression):
```sql
-CREATE INDEX ON table_name(MD5(column_name));
+create index on table_name (MD5(column_name));
```
instead of:
```sql
-CREATE INDEX ON table_name(column_name);
+create index on table_name (column_name);
```
Then you must modify you SELECTs to be using the same function (otherwise the functional index will not be used in SELECT queries). I.e.
diff --git a/packages/ui/src/components/Mermaid/index.tsx b/packages/ui/src/components/Mermaid/index.tsx
index b6f25b21520..ba2240c6fe5 100644
--- a/packages/ui/src/components/Mermaid/index.tsx
+++ b/packages/ui/src/components/Mermaid/index.tsx
@@ -1,2 +1 @@
export { Mermaid, type MermaidProps } from './Mermaid'
-