From 9d6a8d11c707f571f2bda2402e2d38a106f40761 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Thu, 20 Feb 2025 01:11:08 +0300 Subject: [PATCH] chore(snippets): used commands quicksave --- snippets/git.sh | 4 ++++ snippets/postgres/primer.sql | 2 ++ 2 files changed, 6 insertions(+) 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