The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: fixed commit query
TzeYiing9e7482a2a36b
diff --git a/studio/components/interfaces/Settings/Logs/Logs.constants.ts b/studio/components/interfaces/Settings/Logs/Logs.constants.tsindex 323187582f7..d093f590878 100644--- a/studio/components/interfaces/Settings/Logs/Logs.constants.ts+++ b/studio/components/interfaces/Settings/Logs/Logs.constants.ts@@ -17,13 +17,13 @@ export const TEMPLATES: LogTemplate[] = [label: 'Commits By User',description: 'Count of commits made by users on the database',mode: 'custom',- searchString: `SELECT+ searchString: `selectp.user_name, count(*) as countfrom postgres_logsleft join unnest(metadata) as m on trueleft join unnest(m.parsed) as p on truewhere- regexp_contains(event_message, 'commit')+ regexp_contains(event_message, 'COMMIT')group byp.user_name`,@@ -33,7 +33,7 @@ group bylabel: 'Metadata IP',description: 'List all IP addresses that used the Supabase API',mode: 'custom',- searchString: `SELECT timestamp, h.x_real_ip+ searchString: `select timestamp, h.x_real_ipfrom edge_logsleft join unnest(metadata) as m on trueleft join unnest(m.request) as r on true@@ -46,7 +46,7 @@ where h.x_real_ip is not nulllabel: 'Requests by Country',description: 'List all ISO 3166-1 alpha-2 country codes that used the Supabase API',mode: 'custom',- searchString: `SELECT+ searchString: `selectcf.country, count(*) as countfrom edge_logsleft join unnest(metadata) as m on true