Skip to content
database

GitHub Action

Remove Database Client

v1 Latest version

Remove Database Client

database

Remove Database Client

Automate setting up a database client using querydesk.com so your team has instant access for debugging and testing

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Remove Database Client

uses: QueryDesk/remove-db-client@v1

Learn more about this action in QueryDesk/remove-db-client

Choose a version

Remove Database Client (QueryDesk)

Automate setting up a database client using https://querydesk.com so your team has instant access for debugging and testing.

This action allows you to cleanup connections that were previously created.

Usage

jobs:
  create_db:

    steps:
    # ...

    - name: Remove Database Client
      uses: QueryDesk/remove-db-client@v1
      with:
        api-key: ${{ secrets.QUERYDESK_API_KEY}}
        id: pr-${{ github.event.pull_request.number }} # your workflow trigger must be `pull_request` for this to work and must match the id passed on create

    # ...

Inputs

  • api-key: (Required) You will need to create an API key on https://app.querydesk.com/api-keys and save it as a secret in GitHub Actions settings.

    Example API key:

    SFMyNTY.g2gDbQAAAB5rZXlfMDFHSDRHWkFFVkVIOThCWlhXRzZFMjNOUlduBgDh2w9JhAFiAAFRgA.SeeINPdFn2cz6kqnkPb7IE7B9OLnc840R--hWiRoTYg
    
  • id: (Required) The id that was used to create the database connection.

  • host: (Optional) The host to make the api call to, defaults to api.querydesk.com.