Class WPDADB
Manage local and remote database connections.
author | Peter Schulz |
---|---|
since | 3.0.0 |
package | WPDataAccess\Connection |
add_remote_database($database, $host, $user, $passwd, $port, $schema)
check_remote_database_connection() : \wpdb
\wpdb
del_remote_database($database)
get_db_connection(string $schema_name) : mixed | \wpdb
Remote schema name starts with prefix "rdb:"
string
Database (schema) name
mixed
\wpdb
get_remote_database($database, $include_disabled = false
)
get_remote_databases($include_disabled = false
)
iswpdb($schema_name)
load_remote_databases()
save_remote_databases()
string_decrypt(string $string) : string
string
String to be decrypted
string
string_encrypt(string $string) : string
string
String to be encrypted
string
upd_remote_database($database, $host, $user, $passwd, $port, $schema, $disabled, $database_old = false
)
$db_connections : array
array()
Remote database are prefixed with "rdb:"
$lower_case_table_names : null | integer
null
$remote_databases : array | boolean
false