Methods Summary | ||
---|---|---|
public
|
#
__construct( )
|
|
public
|
||
public
|
||
public
|
||
public
|
#
delete_user( string $user , bool $cascade = false )
bool delete_user(string[, bool = false])
Delete a PostgreSQL user
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
prep_tablespace( )
void prep_tablespace ()
Checks to see if tablespace exists, if not, creates it
private |
|
public
|
||
protected
|
||
public
|
#
list_databases( )
array list_databases ()
Queries the db table in the pgsql database for applicable grants
|
|
public
|
||
public
|
||
public
|
#
set_privileges( string $user , string $host , string $db , array $privileges )
Assign privileges for database to user
|
|
public
|
||
public
|
||
public
|
#
prep_tablespace_backend( string $location )
void prep_tablespace_backend ()
{@link prep_tablespace}
|
|
public
|
#
add_user_permissions( string $user , string $db , array $opts )
bool add_user_permissions (string, string, string, array)
Add/removes privileges for a user to a table, any value listed as
false or not supplied as an array key will revoke the privilege
|
|
public
|
||
public
|
#
get_user_permissions( $user , $db )
void get_user_permissions(string, string)
Function not implemented in PostgreSQL
|
|
public
|
#
delete_database( string $db )
bool delete_database(string)
Drops the database and revokes all permssions
|
|
public
|
||
public
|
#
edit_user( string $user , string $password , int $maxconn = NULL )
Modify use password and connection limit
NOTE: Not implemented with PostgreSQL, owner of database automatically
receives grants. Varying degrees of grants impact the usability of
this function, i.e. common grants [SELECT, INSERT, UPDATE, DELETE] exist
solely on the table level, while [CREATE, TEMP] exist on the database
level
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
export_pipe_real( $db , $user )
Export a PGSQL database to a named pipe
Differs from export_pipe in that it may only be called internally
or from backend, no API access
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
get_backup_config( string $db )
Fetch MySQL backup task information
span => (integer) days between backups
hold => (integer) number of backups to preserve
next => (integer) unix timestamp of next backup
ext => (string) extension of backup
email => (string) notify address after backup
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
Methods inherited from Module\Skeleton\Standard |
---|
__construct() ,
setUserParameters() ,
autoloadModule() ,
__wakeup() ,
_invoke() ,
__debugInfo() ,
getExportedFunctions() ,
_reset() ,
cleanUserParameters() ,
query()
|
Constants Summary | ||
---|---|---|
public
array
|
DEPENDENCY_MAP
|
#
array (
0 => 'siteinfo',
1 => 'diskquota',
)
|
public
int
|
IDENTIFIER_MAXLEN
|
#
63
|
public
string
|
PG_TEMP_PASSWORD
|
#
'23f!eoj3'
|
public
string
|
PGSQL_DATADIR
|
#
'/var/lib/pgsql'
|
public
int
|
PER_DATABASE_CONNECTION_LIMIT
|
#
20
|
public
string
|
MASTER_USER
|
#
'root'
|
protected
array
|
PGSQL_PERMITTED_EXTENSIONS
|
#
array (
0 => 'pg_trgm',
1 => 'hstore',
2 => 'pgcrypto',
)
|
Constants inherited from Module\Support\Sql |
---|
DEFAULT_CONCURRENCY_LIMIT
,
MIN_PASSWORD_LENGTH
,
MIN_PREFIX_LENGTH
,
MASTER_USER
,
DB_BIN2TXT_MULT
|
Constants inherited from Module\Skeleton\Standard |
---|
DEPENDENCY_MAP
|
Properties inherited from Module\Support\Sql |
---|
$_tempUsers
|
Properties inherited from Module\Skeleton\Standard |
---|
$exportedFunctions ,
$username ,
$password ,
$domain ,
$user_id ,
$group_id ,
$permission_level ,
$session_id ,
$site ,
$site_id
|