class Driver extends SqlDriver {
- static array $possibleDrivers = array("SQLSRV", "PDO_SQLSRV", "PDO_DBLIB");
+ static array $extensions = array("SQLSRV", "PDO_SQLSRV", "PDO_DBLIB");
static string $jush = "mssql";
public array $insertFunctions = array("date|time" => "getdate");
class Driver extends SqlDriver {
- /** @var list<string> */ static array $possibleDrivers = array("MySQLi", "MySQL", "PDO_MySQL");
+ /** @var list<string> */ static array $extensions = array("MySQLi", "MySQL", "PDO_MySQL");
static string $jush = "sql"; // JUSH identifier
/** @var list<string> */ public array $unsigned = array("unsigned", "zerofill", "unsigned zerofill");
class Driver extends SqlDriver {
- static array $possibleDrivers = array("OCI8", "PDO_OCI");
+ static array $extensions = array("OCI8", "PDO_OCI");
static string $jush = "oracle";
public array $insertFunctions = array( //! no parentheses
class Driver extends SqlDriver {
- static array $possibleDrivers = array("PgSQL", "PDO_PgSQL");
+ static array $extensions = array("PgSQL", "PDO_PgSQL");
static string $jush = "pgsql";
public array $operators = array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "ILIKE", "ILIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT IN", "IS NOT NULL"); // no "SQL" to avoid CSRF
class Driver extends SqlDriver {
- static array $possibleDrivers = array("SQLite3", "PDO_SQLite");
+ static array $extensions = array("SQLite3", "PDO_SQLite");
static string $jush = "sqlite";
protected array $types = array(array("integer" => 0, "real" => 0, "numeric" => 0, "text" => 0, "blob" => 0));
if (isset($_GET["username"]) && !class_exists('Adminer\Db')) {
unset($_SESSION["pwds"][DRIVER]);
unset_permanent($permanent);
- page_header(lang('No extension'), lang('None of the supported PHP extensions (%s) are available.', implode(", ", Driver::$possibleDrivers)), false);
+ page_header(lang('No extension'), lang('None of the supported PHP extensions (%s) are available.', implode(", ", Driver::$extensions)), false);
page_footer("auth");
exit;
}
}
abstract class SqlDriver {
- /** @var list<string> */ static array $possibleDrivers = array();
+ /** @var list<string> */ static array $extensions = array(); // possible extensions
static string $jush; // JUSH identifier
protected Db $conn;
}
class Driver extends SqlDriver {
- static array $possibleDrivers = array("allow_url_fopen");
+ static array $extensions = array("allow_url_fopen");
static string $jush = "clickhouse";
public array $operators = array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT IN", "IS NOT NULL", "SQL");
}
class Driver extends SqlDriver {
- static array $possibleDrivers = array("json + allow_url_fopen");
+ static array $extensions = array("json + allow_url_fopen");
static string $jush = "elastic";
public array $insertFunctions = array("json");
class Driver extends SqlDriver {
- static array $possibleDrivers = array("interbase");
+ static array $extensions = array("interbase");
static string $jush = "firebird";
public array $operators = array("=");
}
class Driver extends SqlDriver {
- static array $possibleDrivers = array("imap");
+ static array $extensions = array("imap");
static string $jush = "imap";
public array $insertFunctions = array("json");
}
class Driver extends SqlDriver {
- static array $possibleDrivers = array("mongodb");
+ static array $extensions = array("mongodb");
static string $jush = "mongo";
public array $insertFunctions = array("json");
class Driver extends SqlDriver {
- static array $possibleDrivers = array("SimpleXML + allow_url_fopen");
+ static array $extensions = array("SimpleXML + allow_url_fopen");
static string $jush = "simpledb";
public array $operators = array("=", "<", ">", "<=", ">=", "!=", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "IS NOT NULL");