Skip to content

Instantly share code, notes, and snippets.

@yutakahashi114
Created February 1, 2020 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yutakahashi114/3ef75a0ee22a4a1c1c268f9b72a9689f to your computer and use it in GitHub Desktop.
Save yutakahashi114/3ef75a0ee22a4a1c1c268f9b72a9689f to your computer and use it in GitHub Desktop.
_, 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