for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ganga\Potato;
use SQLite3;
/**
* Class to define connection to sqlite database;
*/
class Connection
{
protected static $conn;
* Constructor
* Declare an instance of SQLite class
public function __construct($dbFile)
self::$conn = new SQLite3($dbFile);
}
* Get an instance of the db connection
* @return SQLite3 connection
public static function db()
if (!Self::$conn) {
// Throw connection error
return Self::$conn->lastErrorMsg();
} else {
return Self::$conn;
public function connectMySQL()
public function conncetSQLite()
public function connectPostrges()