An open API service indexing awesome lists of open source software.

https://github.com/aklinkert/opinionated-pg-formatter

A Docker image to format PostgreSQL files with opinionated default configuration.
https://github.com/aklinkert/opinionated-pg-formatter

docker docker-image pgformatter postgresql sql-formatter

Last synced: 5 days ago
JSON representation

A Docker image to format PostgreSQL files with opinionated default configuration.

Awesome Lists containing this project

README

          

# opinionated-pg-formatter

A docker file containing [pgFormatter](https://github.com/darold/pgFormatter) with an opinionated default config and
support for ignored files. Simple, easy to use, and works with a default set of configuration out of the box.

## Usage

Assuming you have a directory called `migrations` with your SQL files in it, run:

```shell
docker run -v "./migrations:/workdir" --rm ghcr.io/aklinkert/opinionated-pg-formatter
```

## License

```
MIT License

Copyright (c) 2025 - present Alex Klinkert
```