Created
February 1, 2020 11:22
-
-
Save yutakahashi114/3ef75a0ee22a4a1c1c268f9b72a9689f to your computer and use it in GitHub Desktop.
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
_, err := engine.Exec("CREATE ROLE role_name LOGIN PASSWORD 'password'") | |
if err != nil { | |
log.Println(err) | |
return | |
} | |
_, err = engine.Exec("DROP ROLE role_name") | |
if err != nil { | |
log.Println(err) | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment