Skip to content

pub rstoetter cSqlScript cSqlScript::__construct()

Rainer Stötter edited this page May 31, 2018 · 1 revision

Method __construct( ) - of API Reference pub

 public   mixed rstoetter\cSqlScript\cSqlScript::__construct(string $fname, array $a_callables, boolean $debug)
  • Namespace : rstoetter\cSqlScript
  • Class name: cSqlScript
  • This method is defined by the class rstoetter\cSqlScript\cSqlScript

The constructor of cSqlScript objects

Example:

Arguments

  • $fname string - <p>fname is the name of the script file to execute</p>
  • $a_callables array - <p>associative array with user defined functions to be called. Supported array keys are 'statement_before', 'statement_after', 'script_before', 'script_after'. The value part should be a callable. The statement_xxx-callables receive the SQL processed statement as string as first parameter. The script_xxx-callables receive the script as string as first parameter</p>
  • $debug boolean - <p>whether debug messages should be displayed or not. It defaults to false</p>