Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bearddan2000/groovy-cli-gradle-postgres-procedure
Creates a small database table
https://github.com/bearddan2000/groovy-cli-gradle-postgres-procedure
cli driver gradle groovy log4j postgres procedure
Last synced: about 3 hours ago
JSON representation
Creates a small database table
- Host: GitHub
- URL: https://github.com/bearddan2000/groovy-cli-gradle-postgres-procedure
- Owner: bearddan2000
- Created: 2023-09-28T16:28:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-28T16:28:36.000Z (over 1 year ago)
- Last Synced: 2024-12-01T21:14:09.472Z (about 2 months ago)
- Topics: cli, driver, gradle, groovy, log4j, postgres, procedure
- Language: Groovy
- Homepage: https://github.com/bearddan2000/groovy-cli-gradle-postgres-procedure
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# groovy-cli-gradle-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 `groovy-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
- gradle
- log4j
- postgres driver## Docker stack
- postgres:alpine
- gradle:jdk11## To run
`sudo ./install.sh -u`
Creates groovy-srv/log## To stop
`sudo ./install.sh -d`
Removes groovy-srv/log## For help
`sudo ./install.sh -h`## Credit
[Stored procedure based on](https://www.postgresqltutorial.com/postgresql-plpgsql/postgresql-create-procedure/)