Skip to content

io-tupelo/postgres

Repository files navigation

Rewards Config demo project

Before running unit tests:

  1. Install Docker (Docker Desktop for development on a Mac/PC)

  2. Start Postgres

    ./pg-start.bash
  3. Check version of psql tool

    ./psql-start.bash --version
  4. Check version of Postgres database

    ./psql-start.bash -c'select version()'
  5. Create Postgres table 'acme_v01' using psql (only required prior to first run)

    ./psql-start.bash -c'create database acme_v01'

Run unit tests

Use Leiningen as normal

lein clean ; lein run

Cleanup after running unit tests

Terminate Postgres

./pg-stop.bash

Optional

You can run commands in psql interactively as well:

./psql-start.bash
postgres=# select version();    # print the Postgres version
postgres=# \h                   # get SQL help
postgres=# \?                   # get psql help
postgres=# \q                   # exit psql (or <Ctrl-D>)

About

Clojure library for working with Postgres via Next.JDBC - includes JSONB code!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published