This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Demo extends App { | |
import Show.ShowOps | |
"hello world".show() | |
} | |
object Show { | |
def apply[A](implicit sh: Show[A]): Show[A] = sh | |
implicit class ShowOps[A: Show](a: A) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- show privilegies for users | |
SELECT | |
pg_user.usename AS user_name, | |
t1.nspname as schema, | |
t1.relname as table, | |
relacl.privilege_type as type, | |
relacl.is_grantable | |
FROM ( | |
SELECT | |
pg_namespace.nspname, |
NewerOlder