Script - sql query (groovy)

Run a simple query against a direct JDBC connected database (mySQL)

How to use

Example scripts can be used in one of 3 different ways:

View source

Requirements

  1. Scripting for Confluence 4.x or above
  2. Confluence 4.1 or above

Tested

This script (latest version in Bitbucket) is tested during release testing using GINT - Groovy Integration Test Framework

{groovy:output=wiki|script=#https://bitbucket.org/bob_swift/examples/raw/tip/confluence/groovy/sqlQuery.groovy|dbServer=mySqlDBServer}
{groovy}