✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.84
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing//schema.py
# testing/schema.py
# Copyright (C) 2005-2019 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

from . import config
from . import exclusions
from .. import event
from .. import schema


__all__ = ["Table", "Column"]

table_options = {}


def Table(*args, **kw):
    """A schema.Table wrapper/hook for dialect-specific tweaks."""

    test_opts = {k: kw.pop(k) for k in list(kw) if k.startswith("test_")}

    kw.update(table_options)

    if exclusions.against(config._current, "mysql"):
        if (
            "mysql_engine" not in kw
            and "mysql_type" not in kw
            and "autoload_with" not in kw
        ):
            if "test_needs_fk" in test_opts or "test_needs_acid" in test_opts:
                kw["mysql_engine"] = "InnoDB"
            else:
                kw["mysql_engine"] = "MyISAM"

    # Apply some default cascading rules for self-referential foreign keys.
    # MySQL InnoDB has some issues around selecting self-refs too.
    if exclusions.against(config._current, "firebird"):
        table_name = args[0]
        unpack = config.db.dialect.identifier_preparer.unformat_identifiers

        # Only going after ForeignKeys in Columns.  May need to
        # expand to ForeignKeyConstraint too.
        fks = [
            fk
            for col in args
            if isinstance(col, schema.Column)
            for fk in col.foreign_keys
        ]

        for fk in fks:
            # root around in raw spec
            ref = fk._colspec
            if isinstance(ref, schema.Column):
                name = ref.table.name
            else:
                # take just the table name: on FB there cannot be
                # a schema, so the first element is always the
                # table name, possibly followed by the field name
                name = unpack(ref)[0]
            if name == table_name:
                if fk.ondelete is None:
                    fk.ondelete = "CASCADE"
                if fk.onupdate is None:
                    fk.onupdate = "CASCADE"

    return schema.Table(*args, **kw)


def Column(*args, **kw):
    """A schema.Column wrapper/hook for dialect-specific tweaks."""

    test_opts = {k: kw.pop(k) for k in list(kw) if k.startswith("test_")}

    if not config.requirements.foreign_key_ddl.enabled_for_config(config):
        args = [arg for arg in args if not isinstance(arg, schema.ForeignKey)]

    col = schema.Column(*args, **kw)
    if test_opts.get("test_needs_autoincrement", False) and kw.get(
        "primary_key", False
    ):

        if col.default is None and col.server_default is None:
            col.autoincrement = True

        # allow any test suite to pick up on this
        col.info["test_needs_autoincrement"] = True

        # hardcoded rule for firebird, oracle; this should
        # be moved out
        if exclusions.against(config._current, "firebird", "oracle"):

            def add_seq(c, tbl):
                c._init_items(
                    schema.Sequence(
                        _truncate_name(
                            config.db.dialect, tbl.name + "_" + c.name + "_seq"
                        ),
                        optional=True,
                    )
                )

            event.listen(col, "after_parent_attach", add_seq, propagate=True)
    return col


def _truncate_name(dialect, name):
    if len(name) > dialect.max_identifier_length:
        return (
            name[0 : max(dialect.max_identifier_length - 6, 0)]
            + "_"
            + hex(hash(name) % 64)[2:]
        )
    else:
        return name

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
25 Jul 2024 8.43 AM
root / linksafe
0755
plugin
--
25 Jul 2024 8.43 AM
root / linksafe
0755
suite
--
25 Jul 2024 8.43 AM
root / linksafe
0755
__init__.py
2.307 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
__init__.pyc
2.5 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
assertions.py
17.595 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
assertions.pyc
21.981 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
assertsql.py
13.084 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
assertsql.pyc
15.007 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
config.py
2.617 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
config.pyc
4.046 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
engines.py
10.192 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
engines.pyc
15.084 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
entities.py
3.128 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
entities.pyc
3.236 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
exclusions.py
12.466 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
exclusions.pyc
19.441 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
fixtures.py
10.561 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
fixtures.pyc
16.197 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
mock.py
0.872 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
mock.pyc
0.762 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
pickleable.py
2.63 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
pickleable.pyc
7.701 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
profiling.py
8.313 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
profiling.pyc
8.562 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
provision.py
12.952 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
provision.pyc
16.471 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
replay_fixture.py
5.737 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
replay_fixture.pyc
7.485 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
requirements.py
26.231 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
requirements.pyc
44.451 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
schema.py
3.625 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
schema.pyc
3.56 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
util.py
7.557 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
util.pyc
10.904 KB
18 Oct 2019 1.59 PM
root / linksafe
0644
warnings.py
1.268 KB
21 Jul 2019 8.36 PM
root / linksafe
0644
warnings.pyc
1.369 KB
18 Oct 2019 1.59 PM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF