GRAYBYTE WORDPRESS FILE MANAGER8715

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/lib/parsers/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/lib/parsers//lve_create_db_argparse.py
# coding=utf-8
#
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT

import argparse


def lve_create_db_parser():
    parser = argparse.ArgumentParser(
        prog='lve_create_db',
        add_help=True,
        description='Creates a database for lve-stats',
        formatter_class=argparse.ArgumentDefaultsHelpFormatter)

    parser.add_argument(
        '--recreate',
        help='Drops and recreates database even if tables exists',
        action='store_true',
        default=False)
    parser.add_argument(
        '--create-missing-tables',
        help='Create missing tables',
        action='store_true',
        default=False)
    parser.add_argument(
        '--print-sql',
        help='Prints sql and exits, without creating db',
        action='store_true',
        default=False)
    parser.add_argument(
        '--update-serverid-prompt',
        help='Update exist server ID or create new one',
        action='store_true',
        default=False)
    parser.add_argument(
        '--update-serverid-auto',
        help='Update exist server ID with uuid',
        action='store_true',
        default=False)
    parser.add_argument(
        '--validate',
        help='Check the correctness of the database structure',
        action='store_true',
        default=False
    )
    parser.add_argument(
        '--fix',
        help='Try fix errors in database',
        action='store_true',
        default=False
    )

    return parser

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 20 2025 08:30:33
root / root
0755
__pycache__
--
June 20 2025 08:30:33
root / root
0755
__init__.py
0.192 KB
May 30 2025 10:30:46
root / root
0644
cloudlinux_statistics_parser.py
7.985 KB
May 30 2025 10:30:46
root / root
0644
cloudlinux_top_argparse.py
2.735 KB
May 30 2025 10:30:46
root / root
0644
lve_create_db_argparse.py
1.552 KB
May 30 2025 10:30:46
root / root
0644
lve_read_snapshot_argparse.py
3.255 KB
May 30 2025 10:30:46
root / root
0644
lveinfoargparse.py
25.202 KB
May 30 2025 10:30:46
root / root
0644
run_tests_argparse.py
2.921 KB
May 30 2025 10:30:46
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF