edit-pg-dump

command
v1.0.0-alpha42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

hasura-edit-pg-dump

This is a serverless function written in Go and deployed onto now.sh which can takes the output SQL from pg_dump and clean it up so that it can be used as a migration file with Hasura.

  1. SQL front matter, like SET statements are removed.
  2. Comments and empty newlines are removed.
  3. Postgres triggers created by Hasura are removed.

This app is available at https://hasura-edit-pg-dump.now.sh

Usage:

curl --data-binary @file.sql https://hasura-edit-pg-dump.now.sh > cleaned.sql

A bash version is also available:

./edit-pg-dump.sh filename.sql

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL