PHP code example of hypercode / queryrunner

1. Go to this page and download the library: Download hypercode/queryrunner library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hypercode / queryrunner example snippets


ConnectionManagement::setDatabase([
'db' => [
    "driver" => "psql",
    "host" => "localhost",
    "port" => "8080",
    "dbname" => "clients_db",
    "user" => "root",
    "password" => "1234",
]
]);

$query = new QueryRunner;
$query->select('TableName', 'name,age,created_by');

$query->select('TableName')->fetch();

$query->select('TableName')->fetchAll();

$query->select('TableName')->execute();