mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 04:45:08 +03:00
37 lines
660 B
TypeScript
37 lines
660 B
TypeScript
import { SupportedAssistantEntities } from './AIAssistant.types'
|
|
|
|
export const ASSISTANT_SUPPORT_ENTITIES: {
|
|
id: SupportedAssistantEntities
|
|
label: string
|
|
name: string
|
|
}[] = [
|
|
{ id: 'rls-policies', label: 'RLS Policies', name: 'RLS policy' },
|
|
{ id: 'functions', label: 'Functions', name: 'database function' },
|
|
]
|
|
|
|
export const SAFE_FUNCTIONS = [
|
|
'count(',
|
|
'sum(',
|
|
'avg(',
|
|
'min(',
|
|
'max(',
|
|
'coalesce(',
|
|
'nullif(',
|
|
'current_timestamp',
|
|
'current_date',
|
|
'length(',
|
|
'lower(',
|
|
'upper(',
|
|
'trim(',
|
|
'substring(',
|
|
'to_char(',
|
|
'to_date(',
|
|
'extract(',
|
|
'date(',
|
|
'date_trunc(',
|
|
'string_agg(',
|
|
'in (',
|
|
'now(',
|
|
'left(',
|
|
]
|