Devops Run SQL

Table of Contents

When to use this skill

Running SQL in the environment — queries or scripts, with credentials and connection from .env.

How to use this skill

  1. One-liner:

    ./projects/ores.compass/compass.sh sql -- -c "<sql>"
    

    Everything after -- goes to psql; -f file.sql runs a script.

Recipes

Reference

Emacs 29.1 (Org mode 9.6.6)