Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- startDetection {
- def sql = Sql.newInstance("jdbc:mysql://localhost:3306/${dbName}",
- "${dbUser}", "${dbPassword}", "com.mysql.jdbc.Driver")
- rows = sql.rows("SELECT table_name FROM information_schema.tables " +
- "WHERE table_schema = '${dbName}' AND table_name = '${tablename}'");
- return (rows.length > 0)
- }
Add Comment
Please, Sign In to add comment