|
Squiz Matrix
4.12.2
|
Public Member Functions | |
| __construct ($backend) | |
| __destruct () | |
| cancel () | |
| connect ($dsn) | |
| run () | |
| restoreTerminal () | |
| autoComplete ($hint) | |
| resetTerminal ($save_existing=true) | |
| setOption ($option, $value) | |
SQL client - the main class.
Definition at line 130 of file matrixsqlclient.php.
| __construct | ( | $backend | ) |
Constructor - initialises Matrix DAL and attempts to connect to database
| string | $backend | name of backend plugin to use to connect |
Definition at line 180 of file matrixsqlclient.php.
| __destruct | ( | ) |
Destructor function - should restore terminal settings
Definition at line 197 of file matrixsqlclient.php.
| autoComplete | ( | $hint | ) |
Provides autocompletion for the given text.
| string | $hint | Current non-completed text string |
Definition at line 445 of file matrixsqlclient.php.
| cancel | ( | ) |
Attempt to cancel a currently-running query.
Definition at line 206 of file matrixsqlclient.php.
| connect | ( | $dsn | ) |
Connects the db backend
| string | $dsn | connection string for database |
Definition at line 218 of file matrixsqlclient.php.
| resetTerminal | ( | $save_existing = true | ) |
Gets the terminal ready for our own use (switch it to raw mode).
| bool | $save_existing | whether to save the existing terminal settings for restoring later. |
Definition at line 502 of file matrixsqlclient.php.
| restoreTerminal | ( | ) |
Restores the terminal to the previously saved state.
Definition at line 433 of file matrixsqlclient.php.
| run | ( | ) |
Starts the main interactive terminal
Definition at line 228 of file matrixsqlclient.php.
| setOption | ( | $option, | |
| $value | |||
| ) |
Set an sqlclient option.
| string | $option | name of the option |
| mixed | $value | of the option |
Definition at line 675 of file matrixsqlclient.php.