Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/v/e/veil-HEAD/src/veil/backend/database/postgresql/maintenance/pg_maintenance.py   veil(Download)
from veil.backend.database.migration import *
from veil.backend.database.client import *
from ..server.pg_server_installer import postgresql_maintenance_config
 
LOGGER = logging.getLogger(__name__)
        wait_for_server_up(purpose)
    config = database_client_config(purpose)
    maintenance_config = postgresql_maintenance_config(purpose)
    env = os.environ.copy()
    env['PGPASSWORD'] = maintenance_config.owner_password
def create_database_if_not_exists(purpose):
    config = database_client_config(purpose)
    maintenance_config = postgresql_maintenance_config(purpose)
    env = os.environ.copy()
    env['PGPASSWORD'] = maintenance_config.owner_password

src/v/e/veil-HEAD/src/veil/backend/database/postgresql/maintenance/pg_backup.py   veil(Download)
from veil.backend.database.client import *
from veil.utility.shell import *
from ..server.pg_server_installer import postgresql_maintenance_config
 
#pg_dump --host 10.24.3.10 --port 5432 --username "veil" --no-password  --format tar --blobs --verbose --file "/home/dejavu/dump" "ljmall"
def restore_backup(backup_path, purpose):
    config = database_client_config(purpose)
    maintenance_config = postgresql_maintenance_config(purpose)
    env = os.environ.copy()
    env['PGPASSWORD'] = maintenance_config.owner_password