The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update code blocks to support c# and update some of the Postgrest DB examples
Joseph Schultz7113c3e6d5ac
diff --git a/apps/docs/components/reference/RefFunctionSection.tsx b/apps/docs/components/reference/RefFunctionSection.tsxindex 59e0c0a6abd..296e19ef9c7 100644--- a/apps/docs/components/reference/RefFunctionSection.tsx+++ b/apps/docs/components/reference/RefFunctionSection.tsx@@ -122,6 +122,8 @@ const RefFunctionSection: React.FC<IRefFunctionSection> = (props) => {? 'ts': example?.code?.startsWith('```dart')? 'dart'+ : example?.code?.startsWith('```c#')+ ? 'c#': 'js'// `// import { createClient } from '@supabase/supabase-js'diff --git a/spec/supabase_csharp_v0.yml b/spec/supabase_csharp_v0.ymlindex 6a881cef0b9..7ae300882d5 100644--- a/spec/supabase_csharp_v0.yml+++ b/spec/supabase_csharp_v0.yml@@ -304,7 +304,7 @@ functions:```c#var result = await supabase.From<Movie>()- .Select("name, createdAt")+ .Select(x => new object[] {x.Name, x.CreatedAt}).Get();```- id: query-foreign-tables@@ -339,7 +339,7 @@ functions:```c#var count = await supabase.From<Movie>()- .Select("name")+ .Select(x => new object[] { x.Name }).Count(CountType.Exact);```- id: querying-json-data@@ -431,14 +431,24 @@ functions:notes: |- `Update()` is typically called using a model as an argument or from a hydrated model.examples:- - id: updating-your-data+ - id: updating-your-data-with-filtername: Update your dataisSpotlight: true+ code: |+ ```c#+ var update = await supabase+ .From<City>()+ .Where(x => x.Name == "Auckland")+ .Set(x => new KeyValuePair<object, object>(x.Name, "Middle Earth"))+ .Update();+ ```+ - id: updating-your-data+ name: Update your datacode: |```c#var model = await supabase.From<City>()- .Filter("name", Operator.Equals, "Auckland")+ .Where(x => x.Name == "Auckland").Single();model.Name = "Middle Earth";@@ -484,7 +494,8 @@ functions:await supabase.From<City>()- .Upsert(model, new QueryOptions { OnConflict = "name" });+ .OnConflict(x => x.Name)+ .Upsert(model);```- id: return-the-exact-number-of-rowsname: Return the exact number of rows@@ -517,7 +528,7 @@ functions:```c#await supabase.From<City>()- .Filter("id", Operator.Equals, 342)+ .Where(x => x.Id == 342).Delete();```