(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3130],{46415:function(e,r,s){Promise.resolve().then(s.bind(s,75951))},9254:function(e,r,s){"use strict";s.d(r,{w:function(){return h}});var t=s(84796),o=s(45810),l=s(63291),a=s(84639),i=s(51452),n=s(27474),c=s(60685);let h=e=>{let{blogs:r}=e,s=r.slice(0,3),h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.xu,{pos:"relative",...n.l,children:[(0,t.jsx)(o.xu,{textAlign:{base:"start",md:"center"},mb:16,children:(0,t.jsx)(l.X,{as:"h2",size:"xl",color:"titleAccent",children:"Explore more resources"})}),(0,t.jsx)(a.M,{columns:{base:1,md:2,lg:3},gap:8,children:s.map(e=>(0,t.jsx)(c.c,{blog:e},e.frontmatter.slug))})]}),(0,t.jsx)(i.d,{})]});return s.length>=3?h:null}},75951:function(e,r,s){"use strict";s.d(r,{BranchingPage:function(){return F}});var t=s(84796),o=s(76225),l=s(20935),a=s(82267),i=s(30616),n=s(9254),c=s(77898),h=s(16328),d=s(51452),x=s(39127),u=s(49766),m=s(40009),j=s(8447),g=s(44203);let p=()=>(0,t.jsx)(g.default,{src:"/images/feature-pages/branching-hero.svg",width:646,height:646,alt:"Branching hero image"});var b=s(51659),f=s(70776),v=s(75067),k=s(45810),w=s(9272),y=s(80405),z=s(92590),S=s(43555),A=s(27088),T=s(75125),C=s(20881),I=s(32775),P=s(50812),E=s(63291),B=s(33053),D=s(93459),X=s(56986),W=s(27474),R=s(52020),M=s(84639),_=s(53047);let q=e=>{let{title:r,description:s,illustration:o,number:l,isLast:a}=e;return(0,t.jsx)(k.xu,{children:(0,t.jsxs)(M.M,{columns:{base:1,lg:2},gap:{base:0,lg:24},pos:"relative",alignItems:"center",flexDir:{base:"column",lg:"row"},children:[(0,t.jsxs)(f.k,{gap:8,flexDir:{base:"column",lg:"row"},h:"full",children:[(0,t.jsxs)(f.k,{alignItems:{base:"start",lg:"center"},flexDir:"column",h:"full",pos:"relative",justifyContent:"space-around",children:[(0,t.jsx)(_.U,{display:"flex",borderRadius:"50%",minW:12,minH:12,boxSize:12,fontSize:"xl",bg:"bg",alignItems:"center",justifyContent:"center",boxShadow:"outline",fontWeight:"bold",pos:"relative",zIndex:2,children:l}),(0,t.jsx)(k.xu,{top:1===l?"50%":0,bottom:a?"50%":0,bg:"stroke",w:"1px",display:{base:"none",lg:"block"},pos:"absolute"})]}),(0,t.jsx)(k.xu,{display:"flex",alignItems:"center",justifyContent:"space-around",flexDir:"column",children:(0,t.jsx)(_.U,{display:"flex",alignItems:"center",justifyContent:"space-around",flexDir:"column",delay:.3,children:(0,t.jsxs)(k.xu,{children:[(0,t.jsx)(f.k,{children:(0,t.jsx)(E.X,{as:"h1",size:"xl",mb:4,children:r})}),(0,t.jsx)(w.x,{mb:4,children:s})]})})})]}),(0,t.jsx)(k.xu,{children:(0,t.jsx)(_.U,{pos:"relative",my:{base:4,lg:24},delay:.6,children:o})})]})})},U=e=>{let{children:r}=e;return(0,t.jsx)(b.E,{color:"ghost",bg:"blackAlpha.500",children:r})},H=e=>{let{codeBlocks:r,...s}=e,o=(0,t.jsxs)(f.k,{flexDir:"column",pos:"relative",zIndex:2,children:[(0,t.jsxs)(f.k,{alignItems:"start",gap:4,mb:4,ml:4,children:[(0,t.jsx)(v.q,{src:"https://avatars.githubusercontent.com/u/2181866?v=4",size:"md",boxShadow:"md",showBorder:!0,borderColor:"stroke"}),(0,t.jsx)(k.xu,{bg:"bgPrimary",color:"ghost",fontWeight:"medium",p:2,borderRadius:"md",boxShadow:"md",children:(0,t.jsx)(w.x,{fontSize:"sm",children:"Hey team. I'm making a feature branch so we can collaborate."})})]}),(0,t.jsx)(R.s,{mdxContent:r.branch,pos:"relative",zIndex:2}),(0,t.jsx)(k.xu,{w:"2px",h:4,bg:"stroke",ml:"27px"}),(0,t.jsxs)(f.k,{alignItems:"center",gap:2,fontSize:"xs",ml:4,children:[(0,t.jsx)(v.q,{size:"xs",icon:(0,t.jsx)(y.J,{as:B._lU,boxSize:4})}),(0,t.jsx)(D.BE,{boxSize:4}),(0,t.jsx)(b.E,{fontSize:"xs",children:"xata pull"}),(0,t.jsx)(z.C,{variant:"outline",children:"CLI"}),"updated TS Types in ",(0,t.jsx)(b.E,{fontSize:"xs",children:"src/xata.ts"})]}),(0,t.jsx)(k.xu,{w:"2px",h:4,bg:"stroke",ml:"27px"}),(0,t.jsxs)(f.k,{alignItems:"center",gap:2,fontSize:"xs",ml:4,children:[(0,t.jsx)(v.q,{size:"xs",icon:(0,t.jsx)(y.J,{as:B._lU,boxSize:4})}),(0,t.jsx)(D.BE,{boxSize:4}),(0,t.jsx)(b.E,{fontSize:"xs",children:"xata pull"}),(0,t.jsx)(z.C,{variant:"outline",children:"CLI"}),"created new migration files in ",(0,t.jsx)(b.E,{fontSize:"xs",children:".xata/migrations"})]})]}),i=(0,t.jsxs)(f.k,{flexDir:"column",children:[(0,t.jsxs)(f.k,{alignItems:"start",gap:4,mb:4,ml:4,children:[(0,t.jsx)(v.q,{src:"https://avatars.githubusercontent.com/u/2181866?v=4",size:"md",boxShadow:"md",showBorder:!0,borderColor:"stroke"}),(0,t.jsx)(k.xu,{bg:"bgPrimary",color:"ghost",fontWeight:"medium",p:2,borderRadius:"md",boxShadow:"md",children:(0,t.jsxs)(w.x,{fontSize:"sm",children:["I made some changes to the Xata schema in the UI. Time to run"," ",(0,t.jsx)(U,{children:"xata pull my-changes"})," to get back Types! Now I'll commit the generated migration files into a PR along with my app code."]})})]}),(0,t.jsxs)(f.k,{alignItems:"center",gap:2,fontSize:"xs",ml:4,children:[(0,t.jsx)(v.q,{size:"xs",bg:"bgPrimary",icon:(0,t.jsx)(y.J,{as:a.EhG,boxSize:4})}),(0,t.jsx)(v.q,{src:"https://avatars.githubusercontent.com/u/2181866?v=4",size:"xs",boxShadow:"md",showBorder:!0,borderColor:"stroke"}),(0,t.jsx)(w.x,{children:"Alexis"}),"committed ",(0,t.jsx)(b.E,{fontSize:"xs",children:"add desc column"})," into ",(0,t.jsx)(b.E,{fontSize:"xs",children:"my-changes"})," just now"]}),(0,t.jsx)(k.xu,{w:"2px",h:4,bg:"stroke",ml:"27px"}),(0,t.jsx)(R.s,{mdxContent:r.pr,pos:"relative",zIndex:2}),(0,t.jsx)(k.xu,{w:"2px",h:4,bg:"stroke",ml:"27px"}),(0,t.jsxs)(f.k,{alignItems:"center",gap:2,fontSize:"xs",ml:4,children:[(0,t.jsx)(v.q,{size:"xs",icon:(0,t.jsx)(y.J,{as:B._lU,boxSize:4})}),(0,t.jsx)(D.BE,{boxSize:4}),(0,t.jsx)(w.x,{children:"Xata"}),(0,t.jsx)(z.C,{variant:"outline",children:"bot"}),"noticed a migration on GitHub. Creating a preview branch for this PR."]})]}),n=(0,t.jsxs)(f.k,{flexDir:"column",pos:"relative",zIndex:2,children:[(0,t.jsxs)(f.k,{flexDir:"column",alignItems:"start",fontSize:"xs",borderRadius:"md",bg:"bg",zIndex:2,overflow:"hidden",mr:12,boxShadow:"outline",children:[(0,t.jsxs)(f.k,{alignItems:"center",bg:"contrastLowest",px:4,py:2,w:"full",gap:2,children:[(0,t.jsx)(D.BE,{boxSize:4}),(0,t.jsx)(w.x,{fontWeight:"semibold",children:"Xata"}),(0,t.jsx)(z.C,{variant:"outline",children:"bot"}),(0,t.jsx)(w.x,{children:"commented 3 minutes ago on GitHub"})]}),(0,t.jsxs)(k.xu,{p:4,w:"full",bg:"bg",children:[(0,t.jsxs)(w.x,{mb:4,children:[(0,t.jsx)("strong",{children:"Preview branches created for your PR"}),". Learn more about"," ",(0,t.jsx)(w.x,{color:"textPrimary",as:"span",children:"Xata for GitHub"}),"."]}),(0,t.jsxs)(S.i,{size:"xs",variant:"bordered",children:[(0,t.jsx)(A.h,{children:(0,t.jsxs)(T.Tr,{children:[(0,t.jsx)(C.Th,{children:"Database"}),(0,t.jsx)(C.Th,{children:"State"}),(0,t.jsx)(C.Th,{children:"Preview"})]})}),(0,t.jsx)(I.p,{children:(0,t.jsxs)(T.Tr,{children:[(0,t.jsx)(P.Td,{children:"preview-my-changes"}),(0,t.jsx)(P.Td,{children:"✅ Ready"}),(0,t.jsx)(P.Td,{children:(0,t.jsx)(w.x,{color:"textPrimary",children:"View on Xata"})})]})})]})]})]}),(0,t.jsx)(k.xu,{w:"2px",h:4,bg:"stroke",ml:"40px",pos:"relative",zIndex:2}),(0,t.jsxs)(f.k,{alignItems:"start",gap:4,ml:4,children:[(0,t.jsx)(v.q,{src:"https://avatars.githubusercontent.com/u/2181866?v=4",size:"md",boxShadow:"md",showBorder:!0,borderColor:"stroke"}),(0,t.jsx)(k.xu,{bg:"bgPrimary",color:"ghost",fontWeight:"medium",p:2,borderRadius:"md",boxShadow:"md",children:(0,t.jsxs)(w.x,{fontSize:"sm",children:["The"," ",(0,t.jsx)(w.x,{textDecoration:"underline",as:"span",children:"pull request"})," ","creates a cloned Xata database with data. Feel free to mess around, it won't affect production data. The Vercel preview build automatically points to the linked Xata database. \uD83C\uDF89"]})})]}),(0,t.jsxs)(f.k,{flexDir:"column",alignItems:"start",fontSize:"xs",borderRadius:"md",bg:"bg",zIndex:2,overflow:"hidden",mr:12,mt:4,boxShadow:"outline",children:[(0,t.jsxs)(f.k,{alignItems:"center",bg:"contrastLowest",px:4,py:2,w:"full",gap:2,children:[(0,t.jsx)(X.Kn,{boxSize:4}),(0,t.jsx)(w.x,{fontWeight:"semibold",children:"Vercel"}),(0,t.jsx)(z.C,{variant:"outline",children:"bot"}),(0,t.jsx)(w.x,{children:"commented 3 minutes ago on GitHub"})]}),(0,t.jsxs)(k.xu,{p:4,w:"full",bg:"bg",children:[(0,t.jsxs)(w.x,{mb:4,children:[(0,t.jsx)("strong",{children:"The latest updates on your project"}),". Learn more about"," ",(0,t.jsx)(w.x,{color:"textPrimary",as:"span",children:"Vercel for GitHub"}),"."]}),(0,t.jsxs)(S.i,{size:"xs",variant:"bordered",children:[(0,t.jsx)(A.h,{children:(0,t.jsxs)(T.Tr,{children:[(0,t.jsx)(C.Th,{children:"Name"}),(0,t.jsx)(C.Th,{children:"State"}),(0,t.jsx)(C.Th,{children:"Preview"})]})}),(0,t.jsx)(I.p,{children:(0,t.jsxs)(T.Tr,{children:[(0,t.jsx)(P.Td,{children:"my-website"}),(0,t.jsx)(P.Td,{children:"✅ Ready"}),(0,t.jsx)(P.Td,{children:(0,t.jsx)(w.x,{color:"textPrimary",children:"View on Xata"})})]})})]})]})]})]}),c=(0,t.jsxs)(f.k,{flexDir:"column",pos:"relative",zIndex:2,children:[(0,t.jsxs)(f.k,{alignItems:"center",gap:2,fontSize:"xs",ml:4,children:[(0,t.jsx)(v.q,{size:"xs",bg:"bgPrimary",icon:(0,t.jsx)(y.J,{as:l.W69,boxSize:4})}),(0,t.jsx)(v.q,{src:"https://avatars.githubusercontent.com/u/2181866?v=4",size:"xs",boxShadow:"md",showBorder:!0,borderColor:"stroke"}),(0,t.jsx)(w.x,{children:"Alexis"}),"merged commit ",(0,t.jsx)(b.E,{fontSize:"xs",children:"3daa381"})," into ",(0,t.jsx)(b.E,{fontSize:"xs",children:"main"})," just now"]}),(0,t.jsx)(k.xu,{w:"2px",h:4,bg:"stroke",ml:"27px"}),(0,t.jsxs)(f.k,{alignItems:"center",gap:2,fontSize:"xs",ml:4,children:[(0,t.jsx)(v.q,{size:"xs",icon:(0,t.jsx)(y.J,{as:B._lU,boxSize:4})}),(0,t.jsx)(D.BE,{boxSize:4,ml:1,mr:1}),(0,t.jsx)(w.x,{children:"Xata"}),(0,t.jsx)(z.C,{variant:"outline",children:"bot"}),"noticed a merge. Deleting branch ",(0,t.jsx)(b.E,{fontSize:"xs",children:"preview-my-changes"})]}),(0,t.jsx)(k.xu,{w:"2px",h:4,bg:"stroke",ml:"27px"}),(0,t.jsxs)(f.k,{alignItems:"center",gap:2,fontSize:"xs",ml:4,children:[(0,t.jsx)(v.q,{size:"xs",icon:(0,t.jsx)(y.J,{as:B._lU,boxSize:4})}),(0,t.jsx)(D.BE,{boxSize:4,ml:1,mr:1}),(0,t.jsx)(w.x,{children:"Xata"}),(0,t.jsx)(z.C,{variant:"outline",children:"bot"}),"noticed a merge. Merging branch ",(0,t.jsx)(b.E,{fontSize:"xs",children:"my-changes"})," to ",(0,t.jsx)(b.E,{fontSize:"xs",children:"main"})]}),(0,t.jsx)(k.xu,{w:"2px",h:4,bg:"stroke",ml:"27px"}),(0,t.jsxs)(f.k,{alignItems:"start",gap:4,ml:4,children:[(0,t.jsx)(v.q,{src:"https://avatars.githubusercontent.com/u/2181866?v=4",size:"md",boxShadow:"md",showBorder:!0,borderColor:"stroke"}),(0,t.jsx)(k.xu,{bg:"bgPrimary",color:"ghost",fontWeight:"medium",p:2,borderRadius:"md",boxShadow:"md",children:(0,t.jsxs)(w.x,{fontSize:"sm",children:["Merged the"," ",(0,t.jsx)(w.x,{textDecoration:"underline",as:"span",children:"pull request"}),". Xata automatically merged the database changes to the ",(0,t.jsx)(U,{children:"main"})," branch with zero downtime."]})})]})]}),h=[{title:"Branch",description:(0,t.jsxs)(t.Fragment,{children:["Branch your database like your code. Run ",(0,t.jsx)(b.E,{children:"xata branch"})," from our CLI then ",(0,t.jsx)(b.E,{children:"xata pull"})," and"," ",(0,t.jsx)(b.E,{children:"xata push"})," to start collaborating with your team."]}),illustration:o,url:"/docs/getting-started",number:1},{title:"Create a PR",description:(0,t.jsx)(t.Fragment,{children:"Create a PR like normal in GitHub. Xata keeps track of your schema changes in the background and will create a comment with your schema and status in the PR."}),illustration:i,url:"/docs/getting-started",number:2},{title:"Preview",description:(0,t.jsx)(t.Fragment,{children:"Vercel and Netlify integrations generate a preview branch with your PR and deployment preview, eliminating the need for separate dev and staging environments."}),illustration:n,url:"/docs/getting-started",number:3},{title:"Merge",description:(0,t.jsx)(t.Fragment,{children:"Merge your pull request as usual. Our system will run checks, perform a zero-downtime migration, and close any open branches, automatically."}),illustration:c,url:"/docs/getting-started",number:4}];return(0,t.jsxs)(k.xu,{id:"workflow-list",children:[(0,t.jsxs)(f.k,{alignItems:{base:"start",lg:"center"},flexDir:"column",...W.l,mb:12,children:[(0,t.jsx)(E.X,{size:"md",color:"textSubtle",mb:4,children:"Keep doing what works best for your team"}),(0,t.jsx)(E.X,{size:"lg",maxW:1200,mx:"auto",children:"A complete end-to-end workflow for preview deployments"})]}),(0,t.jsx)(f.k,{...s,flexDir:"column",...W.l,gap:{base:32,lg:0},children:h.map((e,r)=>(0,t.jsx)(q,{...e,number:r+1,isLast:h.length===r+1},r))})]})},F=e=>{let{blogs:r,snippetPRCode:s,snippetBranchCode:g}=e,b=[{icon:l.U6g,title:"Version control",description:"Create a branch with every pull request for local development and faster collaboration.",link:"/docs/getting-started/workflow"},{icon:a.WB7,title:"Testing environments",description:"Have a branch in every stage of your development lifecycle. From QA to staging to production.",link:"/docs/getting-started/workflow#branching-your-database"},{icon:i.AGA,title:"Preview deployments supported",description:"Pair with your preview deployments in Vercel and Netlify.",link:"/docs/integrations/vercel"},{icon:i.QcD,title:"CI/CD pipeline",description:"Plug into your existing CI/CD pipeline to reduce operational overhead and minimize risk.",link:"/docs/integrations/github"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.D,{title:(0,t.jsxs)(t.Fragment,{children:["Branch your database ",(0,t.jsx)("br",{}),(0,t.jsx)(x.D,{children:"just like your code"})]}),description:"Create a copy of your database for local development, testing or staging environments, then merge into production with zero downtime.",img:(0,t.jsx)(p,{}),buttons:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.z,{as:"a",variant:"gradient",href:"https://app.xata.io",size:"md",children:"Start free"})})}),(0,t.jsx)(d.d,{}),(0,t.jsx)(m.J,{features:b}),(0,t.jsx)(d.d,{}),(0,t.jsx)(h.$,{children:(0,t.jsx)(H,{codeBlocks:{pr:s,branch:g}})}),(0,t.jsx)(d.d,{}),(0,t.jsx)(n.w,{blogs:r}),(0,t.jsx)(j.B,{}),(0,t.jsx)(d.d,{}),(0,t.jsx)(h.$,{children:(0,t.jsx)(c.J,{})})]})}},52020:function(e,r,s){"use strict";s.d(r,{s:function(){return c}});var t=s(84796),o=s(1826),l=s(45810),a=s(65241),i=s(14212),n=s(28197);let c=e=>{let{mdxContent:r,minHeight:s,hasTabs:c,hasOutline:h,fallbackMDXBlock:d,...x}=e,u=(0,i.useMemo)(()=>{try{return(0,a.getMDXComponent)(r)}catch(e){if(d)return e=>(0,t.jsx)(d,{mdxContent:r});throw Error("Error parsing MDX: ".concat(e," ").concat(r))}},[r,d]),m=(0,o.m)(u);return(0,t.jsx)(l.xu,{...x,minHeight:s,...c&&{className:"snippet--hasTabs",as:"pre",bg:"codeBg",borderRadius:"md",overflow:"hidden"},...h&&{className:"snippet--hasOutline",borderRadius:"md",boxShadow:"outline",overflow:"hidden"},children:(0,t.jsx)(m,{components:n.h})})}},49766:function(e,r,s){"use strict";s.d(r,{D:function(){return d}});var t=s(84796),o=s(70776),l=s(45810),a=s(63291),i=s(9272),n=s(93459),c=s(16328),h=s(27474);let d=e=>{let{title:r,description:s,video:d,img:x,buttons:u,...m}=e;return(0,t.jsx)(c.$,{position:"relative",my:{base:8,lg:24},variant:"gradient",...m,children:(0,t.jsx)(o.k,{flexDir:"column",pos:"relative",zIndex:5,w:"full",children:(0,t.jsx)(l.xu,{pos:"relative",children:(0,t.jsxs)(o.k,{gap:{base:8,lg:24},pos:"relative",alignItems:"center",flexDir:{base:"column",lg:"row"},justifyContent:{base:"center",lg:"space-between"},textAlign:{base:"center",lg:"left"},...h.l,children:[(0,t.jsxs)(l.xu,{flexBasis:"60%",maxW:"560px",order:{base:1,lg:0},children:[(0,t.jsx)(a.X,{as:"h1",size:{base:"xl",md:"2xl"},mb:4,color:"titleAccent",children:r}),(0,t.jsx)(i.x,{mb:8,textShadow:"sm",children:s}),(0,t.jsx)(o.k,{gap:4,alignItems:"center",justifyContent:{base:"center",lg:"flex-start"},children:u})]}),d&&(0,t.jsx)(n.nk,{src:d.videoUrl,platform:d.videoPlatform,flexBasis:"40%",boxShadow:"under",w:"full"}),x&&x]})})})})}},40009:function(e,r,s){"use strict";s.d(r,{J:function(){return u}});var t=s(84796),o=s(70776),l=s(84639),a=s(80405),i=s(45810),n=s(63291),c=s(9272),h=s(93459),d=s(27474),x=s(53047);let u=e=>{let{features:r,sectionTitle:s,...u}=e;return(0,t.jsxs)(o.k,{alignItems:{base:"start",lg:"center"},flexDir:"column",...d.l,mb:12,...u,children:[s,(0,t.jsx)(l.M,{columns:{base:1,md:2},gap:24,children:r.map((e,r)=>{let{icon:s,title:l,description:d,link:u}=e;return(0,t.jsxs)(o.k,{gap:8,children:[(0,t.jsx)(x.U,{delay:.3*r,children:(0,t.jsx)(o.k,{bg:"bgPrimary",width:16,height:16,alignItems:"center",justifyContent:"center",borderRadius:"md",children:(0,t.jsx)(a.J,{as:s,boxSize:{base:8},color:"ghost"})})}),(0,t.jsxs)(i.xu,{children:[(0,t.jsx)(n.X,{as:"h3",size:"lg",mb:4,children:l}),(0,t.jsx)(c.x,{mb:4,children:d}),u&&(0,t.jsx)(h.rU,{href:u,fontWeight:"semibold",children:"Learn More"})]})]},r)})})]})}},8447:function(e,r,s){"use strict";s.d(r,{B:function(){return j}});var t=s(84796),o=s(70776),l=s(63291),a=s(9272),i=s(76225),n=s(45810),c=s(56986),h=s(44203),d=s(8651),x=s(16328),u=s(92563),m=s(27474);let j=()=>(0,t.jsx)(x.$,{children:(0,t.jsxs)(o.k,{flexDir:{base:"column",lg:"column"},pos:"relative",...m.l,zIndex:2,w:"full",alignItems:"center",children:[(0,t.jsx)(l.X,{size:"md",color:"textSubtle",mb:4,children:"Learn by example"}),(0,t.jsx)(l.X,{size:"lg",fontWeight:"bold",as:"h1",mb:2,children:"Try out a sample app"}),(0,t.jsx)(a.x,{mb:12,maxW:{base:"full",md:"66%"},textAlign:"center",children:"Built with Next.js, Chakra UI, and Xata, the sample app will help you learn how to query, paginate and search records with a heavy focus on file attachments."}),(0,t.jsx)(o.k,{mb:12,children:(0,t.jsx)(i.z,{as:d.default,href:"https://github.com/xataio/sample-nextjs-chakra-gallery-app",leftIcon:(0,t.jsx)(c.fy,{boxSize:4}),children:"View source on GitHub"})}),(0,t.jsx)(n.xu,{boxShadow:"outline",borderRadius:"md",overflow:"hidden",children:(0,t.jsx)(h.default,{src:u.Z,alt:"Add column to table"})})]})})},28197:function(e,r,s){"use strict";s.d(r,{w:function(){return R},h:function(){return M}});var t=s(84796),o=s(1826),l=s(49568),a=s(76225),i=s(45810),n=s(17349),c=s(7272),h=s(96810),d=s(31579),x=s(15809),u=s(79244),m=s(63291),j=s(51659),g=s(9272),p=s(11749),b=s(43831),f=s(43555),v=s(27088),k=s(32775),w=s(20881),y=s(50812),z=s(75125),S=s(93459);let A={hljs:{display:"block",overflowX:"auto",color:"var(--chakra-colors-codeText)",background:"var(--chakra-colors-codeBg)",whiteSpace:"pre-wrap",padding:"1rem",borderRadius:"0.5rem",border:"1px solid var(--chakra-colors-codeBorder)"},"hljs-comment":{color:"var(--chakra-colors-codeTextComment)"},"hljs-subst":{color:"var(--chakra-colors-codeTextSubst)"},"hljs-selector-tag":{color:"var(--chakra-colors-codeTextDanger)"},"hljs-selector-id":{color:"var(--chakra-colors-codeTextPrimary)",fontWeight:"bold"},"hljs-selector-class":{color:"var(--chakra-colors-codeTextPrimary)"},"hljs-selector-attr":{color:"var(--chakra-colors-codeTextPrimary)"},"hljs-selector-pseudo":{color:"var(--chakra-colors-purple-300)"},"hljs-addition":{backgroundColor:"rgba(163, 190, 140, 0.3)"},"hljs-deletion":{backgroundColor:"rgba(191, 97, 106, 0.3)"},"hljs-built_in":{color:"var(--chakra-colors-codeTextPrimary)"},"hljs-type":{color:"var(--chakra-colors-codeTextPrimary)"},"hljs-class":{color:"var(--chakra-colors-codeTextPrimary)"},"hljs-function":{color:"var(--chakra-colors-purple-300)"},"hljs-function > .hljs-title":{color:"var(--chakra-colors-purple-300)"},"hljs-keyword":{color:"var(--chakra-colors-textAccent)"},"hljs-literal":{color:"var(--chakra-colors-textAccent)"},"hljs-symbol":{color:"var(--chakra-colors-textAccent)"},"hljs-number":{color:"var(--chakra-colors-textDanger)"},"hljs-regexp":{color:"#EBCB8B"},"hljs-string":{color:"var(--chakra-colors-textAccent)"},"hljs-title":{color:"var(--chakra-colors-codeTextPrimary)"},"hljs-params":{color:"var(--chakra-colors-contrastHigh)"},"hljs-bullet":{color:"var(--chakra-colors-textAccent)"},"hljs-code":{color:"var(--chakra-colors-codeTextPrimary)"},"hljs-emphasis":{fontStyle:"italic"},"hljs-formula":{color:"var(--chakra-colors-codeTextPrimary)"},"hljs-strong":{fontWeight:"bold"},"hljs-link:hover":{textDecoration:"underline"},"hljs-quote":{color:"var(--chakra-colors-codeTextComment)"},"hljs-doctag":{color:"var(--chakra-colors-codeTextPrimary)"},"hljs-meta":{color:"var(--chakra-colors-textSuccess)"},"hljs-meta-keyword":{color:"var(--chakra-colors-textSuccess)"},"hljs-meta-string":{color:"var(--chakra-colors-textSubtle)"},"hljs-attr":{color:"var(--chakra-colors-codeTextPrimary)"},"hljs-attribute":{color:"var(--chakra-colors-contrastHigh)"},"hljs-builtin-name":{color:"var(--chakra-colors-textAccent)"},"hljs-name":{color:"var(--chakra-colors-textAccent)"},"hljs-section":{color:"var(--chakra-colors-purple-300)"},"hljs-tag":{color:"var(--chakra-colors-textAccent)"},"hljs-variable":{color:"var(--chakra-colors-contrastHigh)"},"hljs-template-variable":{color:"var(--chakra-colors-contrastHigh)"},"hljs-template-tag":{color:"var(--chakra-colors-textSuccess)"},"abnf .hljs-attribute":{color:"var(--chakra-colors-purple-300)"},"abnf .hljs-symbol":{color:"#EBCB8B"},"apache .hljs-attribute":{color:"var(--chakra-colors-purple-300)"},"apache .hljs-section":{color:"var(--chakra-colors-textAccent)"},"arduino .hljs-built_in":{color:"var(--chakra-colors-purple-300)"},"aspectj .hljs-meta":{color:"var(--chakra-colors--textWarning)"},"aspectj > .hljs-title":{color:"var(--chakra-colors-purple-300)"},"bnf .hljs-attribute":{color:"var(--chakra-colors-codeTextPrimary)"},"clojure .hljs-name":{color:"var(--chakra-colors-purple-300)"},"clojure .hljs-symbol":{color:"#EBCB8B"},"coq .hljs-built_in":{color:"var(--chakra-colors-purple-300)"},"cpp .hljs-meta-string":{color:"var(--chakra-colors-codeTextPrimary)"},"css .hljs-built_in":{color:"var(--chakra-colors-purple-300)"},"css .hljs-keyword":{color:"var(--chakra-colors--textWarning)"},"diff .hljs-meta":{color:"var(--chakra-colors-codeTextPrimary)"},"ebnf .hljs-attribute":{color:"var(--chakra-colors-codeTextPrimary)"},"glsl .hljs-built_in":{color:"var(--chakra-colors-purple-300)"},"groovy .hljs-meta:not(:first-child)":{color:"var(--chakra-colors--textWarning)"},"haxe .hljs-meta":{color:"var(--chakra-colors--textWarning)"},"java .hljs-meta":{color:"var(--chakra-colors--textWarning)"},"ldif .hljs-attribute":{color:"var(--chakra-colors-codeTextPrimary)"},"lisp .hljs-name":{color:"var(--chakra-colors-purple-300)"},"lua .hljs-built_in":{color:"var(--chakra-colors-purple-300)"},"moonscript .hljs-built_in":{color:"var(--chakra-colors-purple-300)"},"nginx .hljs-attribute":{color:"var(--chakra-colors-purple-300)"},"nginx .hljs-section":{color:"var(--chakra-colors-textSuccess)"},"pf .hljs-built_in":{color:"var(--chakra-colors-purple-300)"},"processing .hljs-built_in":{color:"var(--chakra-colors-purple-300)"},"scss .hljs-keyword":{color:"var(--chakra-colors-textAccent)"},"stylus .hljs-keyword":{color:"var(--chakra-colors-textAccent)"},"swift .hljs-meta":{color:"var(--chakra-colors--textWarning)"},"vim .hljs-built_in":{color:"var(--chakra-colors-purple-300)",fontStyle:"italic"},"yaml .hljs-meta":{color:"var(--chakra-colors--textWarning)"}};var T=s(8651),C=s(14212),I=s(36486),P=s(5342),E=s.n(P);let B=(0,o.m)(I.Z),D={sx:{maxW:800,w:"full",mx:"auto","&:not(:last-child)":{mb:6}}},X=e=>{let{ctx:r,...s}=e,{onCopy:o,setValue:i,hasCopied:n}=(0,l.V)("");return(0,C.useEffect)(()=>{var e,s;i(null!==(s=null===(e=r.current)||void 0===e?void 0:e.textContent)&&void 0!==s?s:"")},[r,i]),(0,t.jsx)(a.z,{onClick:o,size:"xs","aria-label":"copy",color:"white",bg:"primary.500",pos:"absolute",right:2,top:2,opacity:0,_hover:{bg:"primary.600"},...s,children:n?"Copied":"Copy"})},W={DocsEnablePostgres:e=>(0,t.jsx)(S.oZ,{...e,...D}),TabList:n.t,Tab:c.O,TabPanels:h.n,TabPanel:d.x,CodeCompare:e=>(0,t.jsx)(S.cE,{...e,...D,maxW:1200,children:e.children}),TabbedCode:e=>(0,t.jsx)(S.jr,{tabs:e.tabs,...e,...D,children:e.children}),Tabs:e=>(0,t.jsx)(x.m,{...e,...D,variant:"minimal"}),Alert:e=>(0,t.jsx)(u.b,{...e,...D,variant:"left-accent"}),TransformImageExample:e=>(0,t.jsx)(S.gO,{url:e.url,options:e.options,...D}),Expand:e=>(0,t.jsx)(S.M0,{title:e.title,...e,...D}),blockquote:e=>(0,t.jsx)(u.b,{as:"blockquote",...e,...D,variant:"left-accent"}),ArticleImage:e=>(0,t.jsx)(S.Se,{src:e.src,width:e.width,height:e.height,alt:e.alt,...D,...e}),ArticleVideo:e=>(0,t.jsx)(S.nk,{src:e.src,width:e.width,height:e.height,platform:e.platform,...D,...e}),h1:e=>(0,t.jsx)(m.X,{as:"h1",size:"2xl",id:E()(String(e.children)),...e,...D}),h2:e=>{let r=E()(String(e.children),{lower:!0,strict:!0});return(0,t.jsx)(S.nY,{href:"#".concat(r),pt:8,...D,children:(0,t.jsx)(m.X,{size:"xl",as:"h2",id:r,...e,style:{scrollMarginTop:80}})})},h3:e=>{let r=E()(String(e.children),{lower:!0,strict:!0});return(0,t.jsx)(S.nY,{href:"#".concat(r),pt:6,...D,children:(0,t.jsx)(m.X,{size:"md",as:"h3",id:r,...e,style:{scrollMarginTop:80}})})},h4:e=>{let r=E()(String(e.children),{lower:!0,strict:!0});return(0,t.jsx)(S.nY,{href:"#".concat(r),pt:6,...D,children:(0,t.jsx)(m.X,{size:"sm",as:"h4",id:r,...e,style:{scrollMarginTop:80}})})},h5:e=>{let r=E()(String(e.children),{lower:!0,strict:!0});return(0,t.jsx)(S.nY,{href:"#".concat(r),pt:4,...D,children:(0,t.jsx)(m.X,{size:"xs",as:"h5",id:r,...e,style:{scrollMarginTop:80}})})},h6:e=>{let r=E()(String(e.children),{lower:!0,strict:!0});return(0,t.jsx)(S.nY,{href:"#".concat(r),pt:4,...D,children:(0,t.jsx)(m.X,{size:"xs",as:"h6",id:r,...e,style:{scrollMarginTop:80}})})},pre:e=>{let{children:r,...s}=e,o=(0,C.useRef)(null);return(0,t.jsxs)(i.xu,{pos:"relative",role:"group",...D,children:[(0,t.jsx)(X,{ctx:o,_groupHover:{opacity:1}}),(0,t.jsx)(i.xu,{ref:o,as:"pre",...D,...s,children:r})]})},code:e=>"string"!=typeof e.children?(0,t.jsx)("code",{children:e.children}):(0,t.jsx)(j.E,{...e}),p:e=>"string"!=typeof e.children&&void 0!==e.children.props&&e.children.props.src?(0,t.jsx)(t.Fragment,{children:e.children}):(0,t.jsx)(g.x,{...e,...D}),img:e=>{let{src:r,alt:s,width:o,height:l}=e;return(0,t.jsx)(S.Se,{src:r,caption:s,width:o,height:l,alt:s,...D})},li:e=>(0,t.jsx)(p.HC,{children:e.children}),ul:e=>(0,t.jsx)(p.QI,{pl:8,spacing:2,...D,children:e.children}),ol:e=>(0,t.jsx)(p.GS,{pl:8,spacing:2,...D,children:e.children}),a:e=>(0,t.jsx)(b.r,{as:T.default,href:e.href,children:e.children}),table:e=>(0,t.jsx)(f.i,{...D,size:"sm",layout:"fixed",variant:"docs",children:e.children}),thead:e=>(0,t.jsx)(v.h,{children:e.children}),tbody:e=>(0,t.jsx)(k.p,{children:e.children}),th:e=>(0,t.jsx)(w.Th,{children:e.children}),td:e=>(0,t.jsx)(y.Td,{children:e.children}),tr:e=>(0,t.jsx)(z.Tr,{children:e.children})},R={...W,code:e=>void 0===e.className?(0,t.jsx)(j.E,{...e}):(0,t.jsx)(B,{style:A,language:"typescript",...D,mb:8,children:e.children})},M=W},92563:function(e,r){"use strict";r.Z={src:"/_next/static/media/gallery-example.d5b6e4f2.png",height:1200,width:2400,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAMFBMVEUMCxVbVHx5cbNseWFLSjsxMCQfJSaGebtlWoWXh8pfYUyCaE5oUzx4f29xZKxDNT3rxyJJAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAJ0lEQVR4nBXBhw0AIAwDsKS7zP+/RdjoIslqZOBLiHuoXcFZU/cweQo0AKr4kUOaAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}}},function(e){e.O(0,[4074,8332,5196,1842,5491,5417,3698,5403,5661,5050,1824,1580,123,7250,9176,2396,5614,6285,6986,4903,9541,5554,3106,1744],function(){return e(e.s=46415)}),_N_E=e.O()}]);