{"title":"Supabase","description":"Add Supabase as an external catalog in Altertable for unified analytics using Transaction Pooler. Query and analyze data across Supabase and other sources.","order":5,"askSuggestions":["Which Supabase connection method works with Altertable?","How do I query Supabase tables with my lakehouse data?"],"navigation":true,"body":{"code":"var Component=(()=>{var p=Object.create;var c=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var w=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),y=(o,e)=>{for(var t in e)c(o,t,{get:e[t],enumerable:!0})},i=(o,e,t,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let a of g(e))!b.call(o,a)&&a!==t&&c(o,a,{get:()=>e[a],enumerable:!(r=m(e,a))||r.enumerable});return o};var S=(o,e,t)=>(t=o!=null?p(f(o)):{},i(e||!o||!o.__esModule?c(t,\"default\",{value:o,enumerable:!0}):t,o)),x=o=>i(c({},\"__esModule\",{value:!0}),o);var h=w((D,l)=>{l.exports=_jsx_runtime});var k={};y(k,{default:()=>u,frontmatter:()=>v});var n=S(h()),v={title:\"Supabase\",description:\"Add Supabase as an external catalog in Altertable for unified analytics using Transaction Pooler. Query and analyze data across Supabase and other sources.\",order:5,askSuggestions:[\"Which Supabase connection method works with Altertable?\",\"How do I query Supabase tables with my lakehouse data?\"]};function d(o){let e={a:\"a\",code:\"code\",h1:\"h1\",h2:\"h2\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",strong:\"strong\",ul:\"ul\",...o.components},{DocsPreviewDocument:t,DocsPreviewSection:r,Screenshot:a}=e;return t||s(\"DocsPreviewDocument\",!0),r||s(\"DocsPreviewSection\",!0),a||s(\"Screenshot\",!0),(0,n.jsxs)(t,{anchors:\"supabase connect-the-catalog verify-the-connection caveats\",children:[(0,n.jsxs)(r,{sectionId:\"supabase\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,n.jsx)(e.h1,{id:\"supabase\",children:\"Supabase\"}),`\n`,(0,n.jsx)(e.p,{children:\"Add your Supabase database as an external catalog in Altertable to query and analyze it alongside your other data sources.\"}),`\n`,(0,n.jsxs)(e.p,{children:[\"Before connecting, make sure Altertable can reach your source. Configure \",(0,n.jsx)(e.a,{href:\"/docs/administration/network\",children:\"network access\"}),\" if it requires an IP allowlist or SSH tunnel. Use credentials for the source database, rather than Altertable lakehouse credentials.\"]}),`\n`]}),(0,n.jsxs)(r,{sectionId:\"connect-the-catalog\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,n.jsx)(e.h2,{id:\"connect-the-catalog\",children:\"Connect the catalog\"}),`\n`,(0,n.jsxs)(e.ol,{children:[`\n`,(0,n.jsxs)(e.li,{children:[\"Open \",(0,n.jsx)(e.strong,{children:\"Catalogs\"}),\" and choose \",(0,n.jsx)(e.strong,{children:\"New catalog\"}),\".\"]}),`\n`,(0,n.jsxs)(e.li,{children:[\"Select \",(0,n.jsx)(e.strong,{children:\"Supabase\"}),\" as the engine.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[\"Fill in the connection details:\",`\n`,(0,n.jsxs)(e.ul,{children:[`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Host\"}),\": The hostname or IP address of your Supabase server\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Port\"}),\": The port number (default: 5432)\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Database\"}),\": The name of the database to connect to\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Schema\"}),\" (optional): The name of the schema to connect to\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Username\"}),\": Your Supabase username\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Password\"}),\": Your Supabase password\"]}),`\n`]}),`\n`]}),`\n`,(0,n.jsxs)(e.li,{children:[\"Choose \",(0,n.jsx)(e.strong,{children:\"Connect\"}),\" to create the catalog.\"]}),`\n`]}),`\n`,(0,n.jsx)(a,{story:\"app-components-connections-connection-form--supabase-empty\",caption:\"New Supabase connection form\",width:\"1408\",height:\"2134\"}),`\n`]}),(0,n.jsxs)(r,{sectionId:\"verify-the-connection\",anchors:\"\",ancestors:\"\",index:\"2\",children:[(0,n.jsx)(e.h2,{id:\"verify-the-connection\",children:\"Verify the connection\"}),`\n`,(0,n.jsxs)(e.p,{children:[\"Open \",(0,n.jsx)(e.a,{href:\"/docs/lakehouse/query/sql-explorer\",children:\"SQL Explorer\"}),\" and inspect the new catalog's schemas and tables. Replace the example identifiers with names from your source:\"]}),`\n`,(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:\"language-sql\",children:`SELECT * FROM my_source.my_schema.my_table LIMIT 10;\n`})}),`\n`,(0,n.jsxs)(e.p,{children:[\"Compare the returned rows with the source. You can then \",(0,n.jsx)(e.a,{href:\"/docs/lakehouse/sql-engine#federated-queries\",children:\"join tables across catalogs\"}),\".\"]}),`\n`]}),(0,n.jsxs)(r,{sectionId:\"caveats\",anchors:\"\",ancestors:\"\",index:\"3\",children:[(0,n.jsx)(e.h2,{id:\"caveats\",children:\"Caveats\"}),`\n`,(0,n.jsxs)(e.p,{children:[\"You will need to use \",(0,n.jsx)(e.strong,{children:\"Transaction Pooler\"}),\" connection method. Direct connection and session pooler methods don't work with Altertable for now.\"]})]})]})}function u(o={}){let{wrapper:e}=o.components||{};return e?(0,n.jsx)(e,{...o,children:(0,n.jsx)(d,{...o})}):d(o)}function s(o,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+o+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return x(k);})();\n;return Component;"},"_id":"docs/lakehouse/external-catalogs/supabase.mdx","_raw":{"sourceFilePath":"docs/lakehouse/external-catalogs/supabase.mdx","sourceFileName":"supabase.mdx","sourceFileDir":"docs/lakehouse/external-catalogs","contentType":"mdx","flattenedPath":"docs/lakehouse/external-catalogs/supabase"},"type":"Docs","path":"/lakehouse/external-catalogs/supabase","level":3,"parent":"lakehouse/external-catalogs"}