src/db/DbConnector.php
public function query($sql, $arguments = array())
    {
        $this->_debugger->trigger("query", [$sql, $arguments]);
        $ret = new DbSource($this, $sql, $arguments);
        return $ret;
    }
public function query($sql, $arguments = array())
    {
        $this->_debugger->trigger("query", [$sql, $arguments]);
        $ret = new DbSource($this, $sql, $arguments);
        return $ret;
    }
public function query ( $ sql , $ arguments = array ( ) ) { $ this -> _debugger -> trigger ( "query" , [ $ sql , $ arguments ] ) ; $ ret = new DbSource ( $ this , $ sql , $ arguments ) ; return $ ret ; }
Executes a DDL statement.

This function executes a DDL statement (select, show, describe, etc...) and returns a datasource.

Examples:
```php
$db = new DbConnector($dbname, $username, $password);

// retrieves a single row
$row = $db->query("select count(*) from table");
echo $row[0];

// retrieves multiple rows
$rows = $db->query("select id, name from mytable where section = ?", "my-section");
foreach ($rows as $row) {
echo "$row[id]: $row[name]\n";
}

// uses an array as arguments
$rows = $db->query("select id, name from mytable where col1 = ? and col2 = ?", array(101, 102));
echo "Number of rows" . count($rows);
```

@param string       $sql       SQL statement
@param scalar|array $arguments Arguments

@return DbSource
Executes a DDL statement .