Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import pgsanity.ecpg
  2. pgsanity.ecpg.check_syntax(str)
  3.  
  4. >>> import pgsanity.ecpg
  5. >>> pgsanity.ecpg.check_syntax("select * from;")
  6. (True, '')
  7. >>> pgsanity.ecpg.check_syntax("I am not SQL, am I?")
  8. (True, '')
  9. >>> pgsanity.ecpg.check_syntax("select select select select. select! select :-(")
  10. (True, '')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement