✘✘ 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.217.0
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /usr/lib64/python2.7/sqlite3/test//dump.py
# Author: Paul Kippes <kippesp@gmail.com>

import unittest
import sqlite3 as sqlite

class DumpTests(unittest.TestCase):
    def setUp(self):
        self.cx = sqlite.connect(":memory:")
        self.cu = self.cx.cursor()

    def tearDown(self):
        self.cx.close()

    def CheckTableDump(self):
        expected_sqls = [
                """CREATE TABLE "index"("index" blob);"""
                ,
                """INSERT INTO "index" VALUES(X'01');"""
                ,
                """CREATE TABLE "quoted""table"("quoted""field" text);"""
                ,
                """INSERT INTO "quoted""table" VALUES('quoted''value');"""
                ,
                "CREATE TABLE t1(id integer primary key, s1 text, " \
                "t1_i1 integer not null, i2 integer, unique (s1), " \
                "constraint t1_idx1 unique (i2));"
                ,
                "INSERT INTO \"t1\" VALUES(1,'foo',10,20);"
                ,
                "INSERT INTO \"t1\" VALUES(2,'foo2',30,30);"
                ,
                u"INSERT INTO \"t1\" VALUES(3,'f\xc3\xb6',40,10);"
                ,
                "CREATE TABLE t2(id integer, t2_i1 integer, " \
                "t2_i2 integer, primary key (id)," \
                "foreign key(t2_i1) references t1(t1_i1));"
                ,
                "CREATE TRIGGER trigger_1 update of t1_i1 on t1 " \
                "begin " \
                "update t2 set t2_i1 = new.t1_i1 where t2_i1 = old.t1_i1; " \
                "end;"
                ,
                "CREATE VIEW v1 as select * from t1 left join t2 " \
                "using (id);"
                ]
        [self.cu.execute(s) for s in expected_sqls]
        i = self.cx.iterdump()
        actual_sqls = [s for s in i]
        expected_sqls = ['BEGIN TRANSACTION;'] + expected_sqls + \
            ['COMMIT;']
        [self.assertEqual(expected_sqls[i], actual_sqls[i])
            for i in xrange(len(expected_sqls))]

    def CheckUnorderableRow(self):
        # iterdump() should be able to cope with unorderable row types (issue #15545)
        class UnorderableRow:
            def __init__(self, cursor, row):
                self.row = row
            def __getitem__(self, index):
                return self.row[index]
        self.cx.row_factory = UnorderableRow
        CREATE_ALPHA = """CREATE TABLE "alpha" ("one");"""
        CREATE_BETA = """CREATE TABLE "beta" ("two");"""
        expected = [
            "BEGIN TRANSACTION;",
            CREATE_ALPHA,
            CREATE_BETA,
            "COMMIT;"
            ]
        self.cu.execute(CREATE_BETA)
        self.cu.execute(CREATE_ALPHA)
        got = list(self.cx.iterdump())
        self.assertEqual(expected, got)

def suite():
    return unittest.TestSuite(unittest.makeSuite(DumpTests, "Check"))

def test():
    runner = unittest.TextTestRunner()
    runner.run(suite())

if __name__ == "__main__":
    test()


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


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
25 Jul 2024 8.42 AM
root / root
0755
__init__.py
0 KB
10 Apr 2024 4.58 AM
root / root
0644
__init__.pyc
0.129 KB
10 Apr 2024 4.58 AM
root / root
0644
__init__.pyo
0.129 KB
10 Apr 2024 4.58 AM
root / root
0644
dbapi.py
29.639 KB
10 Apr 2024 4.58 AM
root / root
0644
dbapi.pyc
41.271 KB
10 Apr 2024 4.58 AM
root / root
0644
dbapi.pyo
41.228 KB
10 Apr 2024 4.58 AM
root / root
0644
dump.py
2.857 KB
10 Apr 2024 4.58 AM
root / root
0644
dump.pyc
3.475 KB
10 Apr 2024 4.58 AM
root / root
0644
dump.pyo
3.475 KB
10 Apr 2024 4.58 AM
root / root
0644
factory.py
11.305 KB
10 Apr 2024 4.58 AM
root / root
0644
factory.pyc
15.014 KB
10 Apr 2024 4.58 AM
root / root
0644
factory.pyo
15.014 KB
10 Apr 2024 4.58 AM
root / root
0644
hooks.py
7.804 KB
10 Apr 2024 4.58 AM
root / root
0644
hooks.pyc
9.684 KB
10 Apr 2024 4.58 AM
root / root
0644
hooks.pyo
9.684 KB
10 Apr 2024 4.58 AM
root / root
0644
py25tests.py
2.672 KB
10 Apr 2024 4.58 AM
root / root
0644
py25tests.pyc
2.921 KB
10 Apr 2024 4.58 AM
root / root
0644
py25tests.pyo
2.921 KB
10 Apr 2024 4.58 AM
root / root
0644
regression.py
15.02 KB
10 Apr 2024 4.58 AM
root / root
0644
regression.pyc
18.563 KB
10 Apr 2024 4.58 AM
root / root
0644
regression.pyo
18.563 KB
10 Apr 2024 4.58 AM
root / root
0644
transactions.py
7.175 KB
10 Apr 2024 4.58 AM
root / root
0644
transactions.pyc
7.935 KB
10 Apr 2024 4.58 AM
root / root
0644
transactions.pyo
7.935 KB
10 Apr 2024 4.58 AM
root / root
0644
types.py
14.657 KB
10 Apr 2024 4.58 AM
root / root
0644
types.pyc
19.942 KB
10 Apr 2024 4.58 AM
root / root
0644
types.pyo
19.942 KB
10 Apr 2024 4.58 AM
root / root
0644
userfunctions.py
14.95 KB
10 Apr 2024 4.58 AM
root / root
0644
userfunctions.pyc
24.086 KB
10 Apr 2024 4.58 AM
root / root
0644
userfunctions.pyo
24.086 KB
10 Apr 2024 4.58 AM
root / root
0644

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