dictature 0.13.2__py3-none-any.whl → 0.13.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dictature/backend/mysql.py +1 -1
- dictature/backend/sqlite.py +1 -1
- {dictature-0.13.2.dist-info → dictature-0.13.3.dist-info}/METADATA +1 -1
- {dictature-0.13.2.dist-info → dictature-0.13.3.dist-info}/RECORD +7 -7
- {dictature-0.13.2.dist-info → dictature-0.13.3.dist-info}/LICENSE +0 -0
- {dictature-0.13.2.dist-info → dictature-0.13.3.dist-info}/WHEEL +0 -0
- {dictature-0.13.2.dist-info → dictature-0.13.3.dist-info}/top_level.txt +0 -0
dictature/backend/mysql.py
CHANGED
@@ -38,7 +38,7 @@ class DictatureBackendMySQL(DictatureBackendMock):
|
|
38
38
|
def keys(self) -> Iterable[str]:
|
39
39
|
# noinspection SqlResolve
|
40
40
|
tables = self._execute(f"SELECT table_name FROM information_schema.tables WHERE table_schema = %s AND table_name LIKE '{self.__prefix}%'", (self.__connection_params['database'],))
|
41
|
-
return {table[0][
|
41
|
+
return {table[0][len(self.__prefix):] for table in tables}
|
42
42
|
|
43
43
|
def table(self, name: str) -> 'DictatureTableMock':
|
44
44
|
return DictatureTableMySQL(self, name, self.__prefix)
|
dictature/backend/sqlite.py
CHANGED
@@ -24,7 +24,7 @@ class DictatureBackendSQLite(DictatureBackendMock):
|
|
24
24
|
|
25
25
|
def keys(self) -> Iterable[str]:
|
26
26
|
tables = self._execute(f"SELECT tbl_name FROM sqlite_master WHERE type='table' AND tbl_name LIKE '{self.__prefix}%'")
|
27
|
-
return {table[0][
|
27
|
+
return {table[0][len(self.__prefix):] for table in tables}
|
28
28
|
|
29
29
|
def table(self, name: str) -> 'DictatureTableMock':
|
30
30
|
return DictatureTableSQLite(self, name, self.__prefix)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: dictature
|
3
|
-
Version: 0.13.
|
3
|
+
Version: 0.13.3
|
4
4
|
Summary: dictature -- A generic wrapper around dict-like interface with mulitple backends
|
5
5
|
Author-email: Adam Hlavacek <git@adamhlavacek.com>
|
6
6
|
Project-URL: Homepage, https://github.com/esoadamo/dictature
|
@@ -4,9 +4,9 @@ dictature/backend/__init__.py,sha256=d5s6QCJOUzFglVNg8Cqqx_8b61S-AOTGjEUIF6FS69U
|
|
4
4
|
dictature/backend/directory.py,sha256=_-8Fx7Ef4tFbOQWHcARfKjm0kbZUpmN1f1ysyWINOr4,3600
|
5
5
|
dictature/backend/misp.py,sha256=R9osuEJa79SoXErwByIwhViJ26cEfw2nKhWu8XxkO7Y,4860
|
6
6
|
dictature/backend/mock.py,sha256=o4YBl6Wk-q6IHFdykGeryTKcQFsJHvymlONPbbwVkak,5891
|
7
|
-
dictature/backend/mysql.py,sha256=
|
7
|
+
dictature/backend/mysql.py,sha256=tKyFtYPlBNliK8QSSj2xCzbcPJoIMLFOh8x1inJ2rIk,4641
|
8
8
|
dictature/backend/s3.py,sha256=9Vcf4-RagyjpV9F4m9ZQ1vjb4lbZfEcOZQBuD_SPwZg,6580
|
9
|
-
dictature/backend/sqlite.py,sha256=
|
9
|
+
dictature/backend/sqlite.py,sha256=4_fBCo1_rmCRXronYbows1gjsuQgzqaOvcFqrz24Efw,5451
|
10
10
|
dictature/backend/webdav.py,sha256=Y-3_WTcMyKVUnsVjiUZAxuy10FK0Yr-7Mgn13clg3po,5039
|
11
11
|
dictature/transformer/__init__.py,sha256=JIFJpXU6iB9hIUM8L7HL2o9Nqjm_YbMEuQBQC8ZJ6b4,124
|
12
12
|
dictature/transformer/aes.py,sha256=ZhC1dT9QpnziErkDLriWLgXDEFNGQW0KG4aqSN2AZpA,1926
|
@@ -15,8 +15,8 @@ dictature/transformer/hmac.py,sha256=vURsB0HlzRPn_Vkl7lGmZV9OKempQuds8AanmadDxIo
|
|
15
15
|
dictature/transformer/mock.py,sha256=7zu65ZqUV_AVRaPSzNd73cVMXixXt31SeuX9OKZxaJQ,948
|
16
16
|
dictature/transformer/passthrough.py,sha256=Pt3N6G_Qh6HJ_q75ETL5nfAwYHLB-SjkVwUwbbbMik8,344
|
17
17
|
dictature/transformer/pipeline.py,sha256=OaQaJeJ5NpICetJe08r8ontqstsXGuW8jDbKw1zxYs4,842
|
18
|
-
dictature-0.13.
|
19
|
-
dictature-0.13.
|
20
|
-
dictature-0.13.
|
21
|
-
dictature-0.13.
|
22
|
-
dictature-0.13.
|
18
|
+
dictature-0.13.3.dist-info/LICENSE,sha256=n1U9DKr8sM5EY2QHcvxSGiKTDWUT8MyXsOC79w94MT0,1072
|
19
|
+
dictature-0.13.3.dist-info/METADATA,sha256=sJFxBPiHhuZYYqLtXN_gxvn09q9VzXeD_h5z--qEtbk,3394
|
20
|
+
dictature-0.13.3.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
21
|
+
dictature-0.13.3.dist-info/top_level.txt,sha256=-RO39WWCF44lqiXhSUcACVqbk6SkgReZTz7ZmHKH3-U,10
|
22
|
+
dictature-0.13.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|