AbstractDatabase

class OC\Setup\AbstractDatabase
Source:lib/private/Setup/AbstractDatabase.php#40

Properties

protected static property OC\Setup\AbstractDatabase::$trans
Source:lib/private/Setup/AbstractDatabase.php#43
Type:\OCP\IL10N
protected static property OC\Setup\AbstractDatabase::$dbUser
Source:lib/private/Setup/AbstractDatabase.php#45
Type:string
protected static property OC\Setup\AbstractDatabase::$dbPassword
Source:lib/private/Setup/AbstractDatabase.php#47
Type:string
protected static property OC\Setup\AbstractDatabase::$dbName
Source:lib/private/Setup/AbstractDatabase.php#49
Type:string
protected static property OC\Setup\AbstractDatabase::$dbHost
Source:lib/private/Setup/AbstractDatabase.php#51
Type:string
protected static property OC\Setup\AbstractDatabase::$dbPort
Source:lib/private/Setup/AbstractDatabase.php#53
Type:string
protected static property OC\Setup\AbstractDatabase::$tablePrefix
Source:lib/private/Setup/AbstractDatabase.php#55
Type:string
protected static property OC\Setup\AbstractDatabase::$config
Source:lib/private/Setup/AbstractDatabase.php#57
Type:\OC\SystemConfig
protected static property OC\Setup\AbstractDatabase::$logger
Source:lib/private/Setup/AbstractDatabase.php#59
Type:\Psr\Log\LoggerInterface
protected static property OC\Setup\AbstractDatabase::$random
Source:lib/private/Setup/AbstractDatabase.php#61
Type:\OCP\Security\ISecureRandom

Methods

public OC\Setup\AbstractDatabase::__construct($trans, $config, $logger, $random)
Source:lib/private/Setup/AbstractDatabase.php#63
public OC\Setup\AbstractDatabase::validate($config)
Source:lib/private/Setup/AbstractDatabase.php#70
public OC\Setup\AbstractDatabase::initialize($config)
Source:lib/private/Setup/AbstractDatabase.php#85
protected OC\Setup\AbstractDatabase::connect($configOverwrite=[])
Source:

lib/private/Setup/AbstractDatabase.php#112

Parameters:
  • $configOverwrite (array)
Returns:

\OC\DB\Connection

public abstract OC\Setup\AbstractDatabase::setupDatabase($userName)
Source:

lib/private/Setup/AbstractDatabase.php#147

Parameters:
  • $userName (string)
public OC\Setup\AbstractDatabase::runMigrations()
Source:lib/private/Setup/AbstractDatabase.php#149