Skip to content

Instantly share code, notes, and snippets.

@doi-t
Created May 30, 2020 10:11
SCHEMA_FILE=path/to/schema/file.sql \
REPO=$(git rev-parse --show-toplevel); \
GIT_HASH=$(git rev-parse HEAD); \
schemalex "local-git://${REPO}?file=${SCHEMA_FILE}&commitish=${GIT_HASH}" ${REPO}/${SCHEMA_FILE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment