diff --git a/web/docs/guides/database/full-text-search.mdx b/web/docs/guides/database/full-text-search.mdx index e0c6bf03113..8b08de50a5e 100644 --- a/web/docs/guides/database/full-text-search.mdx +++ b/web/docs/guides/database/full-text-search.mdx @@ -93,6 +93,7 @@ defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, {label: 'Javascript', value: 'JS'}, + {label: 'Dart', value: 'DART'}, ]}> @@ -112,6 +113,17 @@ const { data, error } = supabase .eq('name', 'Harry') ``` + + + + +```dart +final result = client + .from('books') + .select() + .eq('name', 'Harry'); +``` + @@ -124,6 +136,7 @@ defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, {label: 'Javascript', value: 'JS'}, + {label: 'Dart', value: 'DART'}, ]}> @@ -143,6 +156,16 @@ const { data, error } = supabase .textSearch('name', `'Harry'`) ``` + + + +```dart +final result = client + .from('books') + .select() + .textSearch('name', "'Harry'"); +``` + @@ -157,6 +180,7 @@ defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, {label: 'Javascript', value: 'JS'}, + {label: 'Dart', value: 'DART'}, {label: 'Data', value: 'Data'}, ]}> @@ -181,6 +205,16 @@ const { data, error } = supabase .textSearch('description', `'big'`) ``` + + + +```dart +final result = client + .from('books') + .select() + .textSearch('description', "'big'"); +``` + @@ -234,6 +268,7 @@ defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, {label: 'Javascript', value: 'JS'}, + {label: 'Dart', value: 'DART'}, {label: 'Data', value: 'Data'}, ]}> @@ -258,6 +293,16 @@ const { data, error } = supabase .textSearch('description', `'little' & 'big'`) ``` + + + +```dart +final result = client + .from('books') + .select() + .textSearch('description', "'little' & 'big'"); +``` + @@ -277,6 +322,7 @@ defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, {label: 'Javascript', value: 'JS'}, + {label: 'Dart', value: 'DART'}, {label: 'Data', value: 'Data'}, ]}> @@ -301,6 +347,16 @@ const { data, error } = supabase .textSearch('description', `'little' | 'big'`) ``` + + + +```dart +final result = client + .from('books') + .select() + .textSearch('description', "'little' | 'big'"); +``` + @@ -369,6 +425,7 @@ defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, {label: 'Javascript', value: 'JS'}, + {label: 'Dart', value: 'DART'}, {label: 'Data', value: 'Data'}, ]}> @@ -392,6 +449,16 @@ const { data, error } = supabase .textSearch('fts', `'little' & 'big'`) ``` + + + +```dart +final result = client + .from('books') + .select() + .textSearch('fts', "'little' & 'big'"); +``` + @@ -418,6 +485,7 @@ defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, {label: 'Javascript', value: 'JS'}, + {label: 'Dart', value: 'DART'}, ]}> @@ -440,6 +508,16 @@ const { data, error } = supabase .textSearch('description', `'big' <-> 'dreams'`) ``` + + + +```dart +final result = client + .from('books') + .select() + .textSearch('description', "'big' <-> 'dreams'"); +``` + @@ -451,6 +529,7 @@ defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, {label: 'Javascript', value: 'JS'}, + {label: 'Dart', value: 'DART'}, ]}> @@ -473,6 +552,16 @@ const { data, error } = supabase .textSearch('description', `'year' <2> 'school'`) ``` + + + +```dart +final result = client + .from('books') + .select() + .textSearch('description', "'year' <2> 'school'"); +``` + @@ -487,6 +576,7 @@ defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, {label: 'Javascript', value: 'JS'}, + {label: 'Dart', value: 'DART'}, ]}> @@ -509,6 +599,16 @@ const { data, error } = supabase .textSearch('description', `'big' & !'little'`) ``` + + + +```dart +final result = client + .from('books') + .select() + .textSearch('description', "'big' & !'little'"); +``` +