Discover Packages
github.com/scriptnull/graphql-engine
scripts
edit-pg-dump
command
Version:
v1.0.0-alpha42
Opens a new window with list of versions in this module.
Published: Apr 8, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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.
SQL front matter, like SET
statements are removed.
Comments and empty newlines are removed.
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
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.