Skip to content

bearddan2000/groovy-cli-bazel-postgres-procedure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

groovy-cli-bazel-postgres-procedure

Description

Creates a small database table called dog with an insert update delete after triggers. The trigger function fn_trigger calls sp_rolling_audit that remmoves old entries.

All output normally seen in a terminal will be in java-srv/log which will dump to the screen. The project may seem to hang but the logs from the container must be written to the project this can take up to 3 min.

Tech stack

  • groovy
  • bazel
    • log4j
    • postgres driver

Docker stack

  • l.gcr.io/google/bazel:latest
  • postgres

To run

sudo ./install.sh -u Creates java-srv/log

To stop

sudo ./install.sh -d Removes java-srv/log

For help

sudo ./install.sh -h

Credit

https://github.com/htorun/dbtableprinter