$49 GRAYBYTE WORDPRESS FILE MANAGER $66

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.217.79
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/lib/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/lib//db_functions.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

from sqlalchemy.ext.compiler import compiles
from sqlalchemy.sql import expression
from sqlalchemy.types import Numeric


class greatest(expression.FunctionElement):
    type = Numeric()
    name = "greatest"


class least(expression.FunctionElement):
    type = Numeric()
    name = "least"


@compiles(greatest)
def default_greatest(element, compiler, **kw):
    return compiler.visit_function(element)


@compiles(least)
def default_least(element, compiler, **kw):
    return compiler.visit_function(element)


@compiles(greatest, "sqlite")
def case_greatest(element, compiler, **kw):
    arg1, arg2 = list(element.clauses)
    return f"max({compiler.process(arg1)}, {compiler.process(arg2)})"


@compiles(least, "sqlite")
def case_least(element, compiler, **kw):
    arg1, arg2 = list(element.clauses)
    return f"min({compiler.process(arg1)}, {compiler.process(arg2)})"


class div(expression.FunctionElement):
    type = Numeric
    name = "div"


@compiles(div)
def default_div(element, compiler, **kw):
    arg1, arg2 = list(element.clauses)
    return f"{compiler.process(arg1)} / {compiler.process(arg2)}"


@compiles(div, "mysql")
def case_div(element, compiler, **kw):
    arg1, arg2 = list(element.clauses)
    return f"{compiler.process(arg1)} div {compiler.process(arg2)}"


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 12.00 AM
root / root
0
__pycache__
--
5 Mar 2026 11.53 PM
root / root
0755
bursting
--
5 Mar 2026 11.53 PM
root / root
0755
chart
--
5 Mar 2026 11.53 PM
root / root
0755
commons
--
5 Mar 2026 11.53 PM
root / root
0755
info
--
5 Mar 2026 11.53 PM
root / root
0755
parsers
--
5 Mar 2026 11.53 PM
root / root
0755
__init__.py
0.214 KB
17 Feb 2026 11.00 AM
root / root
0644
cloudlinux_statistics.py
24.873 KB
17 Feb 2026 11.00 AM
root / root
0644
cloudlinux_statsnotifier.py
5.04 KB
17 Feb 2026 11.00 AM
root / root
0644
config.py
3.203 KB
17 Feb 2026 11.00 AM
root / root
0644
db_functions.py
1.452 KB
17 Feb 2026 11.00 AM
root / root
0644
dbengine.py
10.572 KB
17 Feb 2026 11.00 AM
root / root
0644
jsonhandler.py
0.433 KB
17 Feb 2026 11.00 AM
root / root
0644
lve_create_db.py
1.881 KB
17 Feb 2026 11.00 AM
root / root
0644
lve_list.py
3.352 KB
17 Feb 2026 11.00 AM
root / root
0644
lveinfolib.py
41.82 KB
17 Feb 2026 11.00 AM
root / root
0644
lveinfolib_gov.py
13.563 KB
17 Feb 2026 11.00 AM
root / root
0644
lvestats_server.py
8.463 KB
17 Feb 2026 11.00 AM
root / root
0644
notifications_helper.py
5.411 KB
17 Feb 2026 11.00 AM
root / root
0644
server_id.py
5.141 KB
17 Feb 2026 11.00 AM
root / root
0644
snapshot.py
7.742 KB
17 Feb 2026 11.00 AM
root / root
0644
uidconverter.py
5.011 KB
17 Feb 2026 11.00 AM
root / root
0644
ustate.py
8.616 KB
17 Feb 2026 11.00 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF