File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/mcp-server-supabase/src/pg-meta Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ import columnsSql from './columns.sql';
33import extensionsSql from './extensions.sql' ;
44import tablesSql from './tables.sql' ;
55
6- export const DEFAULT_SYSTEM_SCHEMAS = [
6+ export const SYSTEM_SCHEMAS = [
77 'information_schema' ,
88 'pg_catalog' ,
99 'pg_toast' ,
10+ '_timescaledb_internal' ,
1011] ;
1112
1213/**
@@ -23,10 +24,12 @@ export function listTablesSql(schemas: string[] = []) {
2324 from tables
2425 ` ;
2526
27+ sql += '\n' ;
28+
2629 if ( schemas . length > 0 ) {
27- sql += ` where schema in (${ schemas . map ( ( s ) => `'${ s } '` ) . join ( ',' ) } )` ;
30+ sql += `where schema in (${ schemas . map ( ( s ) => `'${ s } '` ) . join ( ',' ) } )` ;
2831 } else {
29- sql += ` where schema not in (${ DEFAULT_SYSTEM_SCHEMAS . map ( ( s ) => `'${ s } '` ) . join ( ',' ) } )` ;
32+ sql += `where schema not in (${ SYSTEM_SCHEMAS . map ( ( s ) => `'${ s } '` ) . join ( ',' ) } )` ;
3033 }
3134
3235 return sql ;
You can’t perform that action at this time.
0 commit comments