Create a copy of your database for local development, testing or staging environments, then merge into production with zero downtime.
Create a branch with every pull request for local development and faster collaboration.
Learn MoreHave a branch in every stage of your development lifecycle. From QA to staging to production.
Learn MorePlug into your existing CI/CD pipeline to reduce operational overhead and minimize risk.
Learn MoreBranch your database like your code. Run xata branch
from our CLI then xata pull
and xata push
to start collaborating with your team.
Hey team. I'm making a feature branch so we can collaborate.
# Create a branch in code or the UI
xata branch create my-changes
# Made changes in the UI? Pull them down
xata pull my-changes
# Made changes in the code? Push them up
xata push my-changes
xata pull
CLIupdated TS Types in src/xata.ts
xata pull
CLIcreated new migration files in .xata/migrations
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.
I made some changes to the Xata schema in the UI. Time to run xata pull my-changes
to get back Types! Now I'll commit the generated migration files into a PR along with my app code.
Alexis
committedadd desc column
into my-changes
just now"addColumn": {
"column": {
"name": "description",
"type": "string"
},
"table": "Posts"
}
Xata
botnoticed a migration on GitHub. Creating a preview branch for this PR.Vercel and Netlify integrations generate a preview branch with your PR and deployment preview, eliminating the need for separate dev and staging environments.
Xata
botcommented 3 minutes ago on GitHub
Preview branches created for your PR. Learn more about Xata for GitHub.
Database | State | Preview |
---|---|---|
preview-my-changes | ✅ Ready | View on Xata |
The 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. 🎉
Vercel
botcommented 3 minutes ago on GitHub
The latest updates on your project. Learn more about Vercel for GitHub.
Name | State | Preview |
---|---|---|
my-website | ✅ Ready | View on Xata |
Merge your pull request as usual. Our system will run checks, perform a zero-downtime migration, and close any open branches, automatically.
Alexis
merged commit3daa381
into main
just nowXata
botnoticed a merge. Deleting branchpreview-my-changes
Xata
botnoticed a merge. Merging branchmy-changes
to main
Merged the pull request. Xata automatically merged the database changes to the main
branch with zero downtime.
By Alex Francoeur
• April 26, 2023
Preview deployments have changed the way we work. Xata's integration with Vercel brings the data layer directly into that workflow.
By Alex Francoeur
• April 26, 2023
Finally, a database with a complete end-to-end developer workflow.
By Anjalee Sudasinghe
• March 21, 2022
Explore the advantages of branching in developer workflows and how Xata brings these benefits to data infrastructure.
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.
Xata provides the best free plan in the industry. It is production ready by default and doesn't pause or cool-down. Take your time to build your business and upgrade when you're ready to scale.
Copyright © 2024 Xatabase Inc.
All rights reserved.