Guest User

Untitled

a guest
Oct 15th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. startDetection {
  2. def sql = Sql.newInstance("jdbc:mysql://localhost:3306/${dbName}",
  3. "${dbUser}", "${dbPassword}", "com.mysql.jdbc.Driver")
  4. rows = sql.rows("SELECT table_name FROM information_schema.tables " +
  5. "WHERE table_schema = '${dbName}' AND table_name = '${tablename}'");
  6. return (rows.length > 0)
  7. }
Add Comment
Please, Sign In to add comment