# Branching Postgres databases with the Neon API

DevFeed: [Branching Postgres databases with the Neon API](<https://devfeed.tech/articles/branching-postgres-databases-with-the-neon-api-5047.md>)

Original publisher: [Read original article](<https://neon.com/blog/branching-postgres-databases-with-the-neon-api>)

Author: Raouf Chebri

Published: 2022-12-07T17:43:14Z

Content type: tutorial

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [CI/CD](<https://devfeed.tech/topics/cicd.md>), [ci](<https://devfeed.tech/topics/ci.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [automation](<https://devfeed.tech/tags/automation.md>), [ci](<https://devfeed.tech/tags/ci.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [code](<https://devfeed.tech/tags/code.md>), [community](<https://devfeed.tech/tags/community.md>), [databases](<https://devfeed.tech/tags/databases.md>), [e2e-testing](<https://devfeed.tech/tags/e2e-testing.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [production](<https://devfeed.tech/tags/production.md>), [testing](<https://devfeed.tech/tags/testing.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

## AI overview

The article explains how to use Neon database branches and the Neon API in a CI/CD pipeline to test code and schema changes before production deployment. It describes GitHub Actions that create and delete database branches for end-to-end testing.

## Source excerpt

In this post, we'll discuss using database branching and the Neon API from a CI/CD pipeline. By the end of this post, you'll have a better understanding of how database branching can help you test your code and schema changes before deploying to production. What is a branch? A br...