Date: 2014/09/24 11:29:29 UTC-07:00
Type: Denizen Script
requisiteDataCheck:
- ^define pass '<def[yamlName].exists||false>'
- ^define pass '<tern[%pass%]:<def[scriptName].exists||false> || false>'
- ^define pass '<tern[%pass%]:<def[db].exists||false> || false>'
- ^define pass '<tern[%pass%]:<def[statement].exists||false> || false>'
- ^if !<def[pass]> {
- announce "<&b>SQLManager - managedConnectionCheck<&co> <&4>Requisite data not found!" to_console
- announce "<&b>SQLManager - managedConnectionCheck<&co> <&d>This transaction has been lost!" to_console
- announce "<&b>SQLManager - managedConnectionCheck<&co> <&c>Check your script!" to_console
- announce "<&b>SQLManager - managedConnectionCheck<&co> <&b>yamlName<&co> <tern[<def[yamlName].exists>]:<&a>%yamlName% || <&c>Not Set!>" to_console
- announce "<&b>SQLManager - managedConnectionCheck<&co> <&b>scriptName<&co> <tern[<def[scriptName].exists>]:<&a>%scriptName% || <&c>Not Set!>" to_console
- announce "<&b>SQLManager - managedConnectionCheck<&co> <&b>db<&co> <tern[<def[db].exists>]:<&a>%db% || <&c>Not Set!>" to_console
- announce "<&b>SQLManager - managedConnectionCheck<&co> <&b>statement<&co> <tern[<def[statement].exists>]:<&a>%statement% || <&c>Not Set!>" to_console
- queue stop
}