Sql

extends Module\Skeleton\Standard implements Opcenter\Contracts\Hookable

Known subclasses

Mysql_Module, Pgsql_Module, Sql_Module
Abstract
Open source code
Methods Summary
protected
# renameDatabasePrefix( string $prefixold , string $prefixnew )
Rename databases on prefix change
protected
# renameDatabasePrefixByType( $type , $prefixold , $prefixnew )
protected static
# pedantize( string $name )
Convert shorthand to formal name
protected
# renameUserPrefix( $prefixold , $prefixnew )
Rename secondary database users
protected
# renameUser( string $old , string $new )
protected
# renameUserPrefixByType( $type , $prefixold , $prefixnew )
protected
# renameUserByType( string $type , string $old , string $new )
Rename database user
protected
# installDatabaseService( string $svc )
Install database service
protected
# uninstallDatabaseService( string $svc )
Delete all databases from account
protected
# _register_temp_user( string $user )
Add temporary *sql user for cleanup
protected
# _connect_root( bool $pdo = false )
Establish privileged connection to MySQL server
protected
protected
# add_backup_real( $type , $db , $extension , $span , $preserve , $email )
protected
# svc_enabled( $type )
Verify if service is enabled
protected
# edit_backup_real( $type , $db , $extension , $span , $preserve , $email )
protected
# list_backups_real( string $type )
Wrapper to list backups for db type
protected
# get_backup_config_real( $type , $db )
protected
# delete_backup_real( $type , $db )
protected
# _escape( $str )
protected
# _preImport( $file , & $unlink )
protected
# _postImport( $file )
Methods inherited from Module\Skeleton\Standard
__construct(), setUserParameters(), autoloadModule(), __wakeup(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), cleanUserParameters(), query()
Constants Summary
public int DEFAULT_CONCURRENCY_LIMIT
# 20
public int MIN_PASSWORD_LENGTH
# 5
public int MIN_PREFIX_LENGTH
# 3
public string MASTER_USER
# 'root'
public double DB_BIN2TXT_MULT
a bullshit constant to decide whether to up the ulimit fsize or not before exporting a db
# 1.5
Constants inherited from Module\Skeleton\Standard
DEPENDENCY_MAP
Properties Summary
protected $_tempUsers
# array ( )
Properties inherited from Module\Skeleton\Standard
$exportedFunctions, $username, $password, $domain, $user_id, $group_id, $permission_level, $session_id, $site, $site_id