SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > sqlalchemy > dialects > postgresql


Operation   : Linux premium131.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
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/dialects/postgresql

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 2461 bytes April 17 2025 13:10:58.
array.py File 11776 bytes April 17 2025 13:10:58.
base.py File 129248 bytes April 17 2025 13:10:58.
dml.py File 7790 bytes April 17 2025 13:10:58.
ext.py File 7739 bytes April 17 2025 13:10:58.
hstore.py File 12417 bytes April 17 2025 13:10:58.
json.py File 10103 bytes April 17 2025 13:10:58.
pg8000.py File 9722 bytes April 17 2025 13:10:58.
provision.py File 2008 bytes April 17 2025 13:10:58.
psycopg2.py File 37768 bytes April 17 2025 13:10:58.
psycopg2cffi.py File 1657 bytes April 17 2025 13:10:58.
pygresql.py File 8129 bytes April 17 2025 13:10:58.
pypostgresql.py File 2915 bytes April 17 2025 13:10:58.
ranges.py File 4622 bytes April 17 2025 13:10:58.
zxjdbc.py File 1415 bytes April 17 2025 13:10:58.

Reading File: //opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/dialects/postgresql/zxjdbc.py

# postgresql/zxjdbc.py
# Copyright (C) 2005-2021 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php

"""
.. dialect:: postgresql+zxjdbc
    :name: zxJDBC for Jython
    :dbapi: zxjdbc
    :connectstring: postgresql+zxjdbc://scott:tiger@localhost/db
    :driverurl: http://jdbc.postgresql.org/


"""
from .base import PGDialect
from .base import PGExecutionContext
from ...connectors.zxJDBC import ZxJDBCConnector


class PGExecutionContext_zxjdbc(PGExecutionContext):
    def create_cursor(self):
        cursor = self._dbapi_connection.cursor()
        cursor.datahandler = self.dialect.DataHandler(cursor.datahandler)
        return cursor


class PGDialect_zxjdbc(ZxJDBCConnector, PGDialect):
    jdbc_db_name = "postgresql"
    jdbc_driver_name = "org.postgresql.Driver"

    execution_ctx_cls = PGExecutionContext_zxjdbc

    supports_native_decimal = True

    def __init__(self, *args, **kwargs):
        super(PGDialect_zxjdbc, self).__init__(*args, **kwargs)
        from com.ziclix.python.sql.handler import PostgresqlDataHandler

        self.DataHandler = PostgresqlDataHandler

    def _get_server_version_info(self, connection):
        parts = connection.connection.dbversion.split(".")
        return tuple(int(x) for x in parts)


dialect = PGDialect_zxjdbc

SILENT KILLER Tool