queryArray

It makes a SELECT request to the database by the connection set in the config.json file.
Before doing the queries you must be sure that you have ever made the connection through the $this->addConnection("config/connection.json"); command and have enabled the connection inside the config.json file.

void queryArray ( String $_query )

Parameters

Query string.

Return Values

Array of rows.

<?php
  [
    [ "Bruce", "Wayne" ],
    [ "Clark", "Kent" ]
  ]
?>

Examples

<?php
  $this->queryArray("SELECT * FROM user");
?>