BentoDB

Real databases, instantly available

Created by API, CLI or GitHub Action

Perfect for

CI/CD

Automate the creation and deletion of databases as part of your CI or CD workflow

Test/QA

Provision real databases for test and QA environments

Local Dev

Run your database on BentoDB rather than your own machine

Create a database using GitHub Actions

on:
  push:
    branches:
      - main
  pull_request:
    branches: '*'

jobs:
  example_job:
    runs-on: ubuntu-latest
    name: Create and then delete a database using BentoDB
    steps:
      - uses: actions/checkout@v3
      - name: Create BentoDB database
        id: create
        uses: DigitalSVN/bentodb-create-database@main
        with:
          api-token: ${{ secrets.BENTODB_API_TOKEN }}
          database-name: "${{ github.repository }}/${{ github.head_ref }}"

      - name: Output the database name
        run: echo "Database name - ${{ steps.create.outputs.database_name }}"

      - name: Run MySQL test script
        run: |
          php ./.github/workflows/test.php
        env:
          DB_HOST: ${{ steps.create.outputs.database_host }}
          DB_PORT: ${{ steps.create.outputs.database_port }}
          DB_NAME: ${{ steps.create.outputs.database_name }}
          DB_USERNAME: ${{ steps.create.outputs.database_username }}
          DB_PASSWORD: ${{ steps.create.outputs.database_password }}

Pricing

BETA
Free to test
  • Instant provisioning
  • Up to 5 live databases
  • Some connection limits