diff --git a/snippets/git.sh b/snippets/git.sh index 9d744ee..5668b4d 100644 --- a/snippets/git.sh +++ b/snippets/git.sh @@ -37,6 +37,10 @@ git remote | xargs -n 1 git push git lfs pull +# Get the top-level directory of the current repository. +git rev-parse --show-toplevel + + ## # Remove files from the latest commit. # -------------------------------------- diff --git a/snippets/postgres/primer.sql b/snippets/postgres/primer.sql index 67bba76..908981a 100644 --- a/snippets/postgres/primer.sql +++ b/snippets/postgres/primer.sql @@ -204,6 +204,8 @@ WHERE grantee = 'engineers'; GRANT USAGE ON SCHEMA bar_schema TO donald; GRANT ALL PRIVILEGES ON foo_table TO jonathan; GRANT admins TO joe; +GRANT SELECT, INSERT ON foo_table IN SCHEMA public TO kevin; +GRANT SELECT (col1), UPDATE (col1) ON ALL TABLES IN SCHEMA public TO zoe; -- Close the connection to the current DB