SQLExecX 2.2.3__tar.gz → 2.2.4__tar.gz
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.
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/PKG-INFO +2 -2
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/SQLExecX.egg-info/PKG-INFO +2 -2
- SQLExecX-2.2.4/SQLExecX.egg-info/requires.txt +1 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/setup.py +2 -2
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/__init__.py +10 -4
- SQLExecX-2.2.3/SQLExecX.egg-info/requires.txt +0 -1
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/LICENSE +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/README.rst +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/SQLExecX.egg-info/SOURCES.txt +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/SQLExecX.egg-info/dependency_links.txt +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/SQLExecX.egg-info/not-zip-safe +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/SQLExecX.egg-info/top_level.txt +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/setup.cfg +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/constant.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/dialect.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/exec.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/loader.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/log_support.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/page_exec.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/sql_exec.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/sql_support.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/table_exec.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/table_limit_exec.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/table_order_by.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/table_page_exec.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/table_support.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/sqlexecx/utils.py +0 -0
- {SQLExecX-2.2.3 → SQLExecX-2.2.4}/test/test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: SQLExecX
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.4
|
|
4
4
|
Summary: A easy, fast sql executor for Python. Supported MySQL, PostgreSQL, SQLite etc.
|
|
5
5
|
Home-page: https://gitee.com/summry/sqlexecx
|
|
6
6
|
Author: summy
|
|
@@ -9,7 +9,7 @@ Keywords: SQL,MySQL,PostgreSQL,SQLite,Database,Python,RDB
|
|
|
9
9
|
Requires-Python: >=3.6
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
|
-
Requires-Dist: sqlexecutorx>=1.8.
|
|
12
|
+
Requires-Dist: sqlexecutorx>=1.8.9
|
|
13
13
|
|
|
14
14
|
Usage Sample
|
|
15
15
|
''''''''''''
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: SQLExecX
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.4
|
|
4
4
|
Summary: A easy, fast sql executor for Python. Supported MySQL, PostgreSQL, SQLite etc.
|
|
5
5
|
Home-page: https://gitee.com/summry/sqlexecx
|
|
6
6
|
Author: summy
|
|
@@ -9,7 +9,7 @@ Keywords: SQL,MySQL,PostgreSQL,SQLite,Database,Python,RDB
|
|
|
9
9
|
Requires-Python: >=3.6
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
|
-
Requires-Dist: sqlexecutorx>=1.8.
|
|
12
|
+
Requires-Dist: sqlexecutorx>=1.8.9
|
|
13
13
|
|
|
14
14
|
Usage Sample
|
|
15
15
|
''''''''''''
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sqlexecutorx>=1.8.9
|
|
@@ -17,9 +17,9 @@ setup(
|
|
|
17
17
|
description="A easy, fast sql executor for Python. Supported MySQL, PostgreSQL, SQLite etc.",
|
|
18
18
|
long_description=long_description,
|
|
19
19
|
long_description_content_type='text/markdown',
|
|
20
|
-
version='2.2.
|
|
20
|
+
version='2.2.4',
|
|
21
21
|
install_requires=[
|
|
22
|
-
'sqlexecutorx>=1.8.
|
|
22
|
+
'sqlexecutorx>=1.8.9',
|
|
23
23
|
],
|
|
24
24
|
url='https://gitee.com/summry/sqlexecx',
|
|
25
25
|
author='summy',
|
|
@@ -19,6 +19,12 @@ Engine.SQLITE
|
|
|
19
19
|
>>> sql = 'SELECT count(1) FROM person WHERE name=%s and age=%s LIMIT 1'
|
|
20
20
|
>>> db.get(sql, '张三', 20)
|
|
21
21
|
1
|
|
22
|
+
|
|
23
|
+
可以设置`LRU_CACHE_SIZE`环境变量来设置缓存大小,默认是64。
|
|
24
|
+
linux or macos:
|
|
25
|
+
export LRU_CACHE_SIZE=128
|
|
26
|
+
windows:
|
|
27
|
+
set LRU_CACHE_SIZE=128
|
|
22
28
|
"""
|
|
23
29
|
|
|
24
30
|
from sqlexecutorx import (
|
|
@@ -85,10 +91,10 @@ def init(*args, **kwargs) -> Engine:
|
|
|
85
91
|
Compliant with the Python DB API 2.0 (PEP-249).
|
|
86
92
|
|
|
87
93
|
Addition parameters:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
- driver=None: str|Driver, 'psycopg2' or 'pymysql' or 'mysql.connector' or 'sqlite3' or 'turso'
|
|
95
|
+
- pool_size=0: int, default 0, size of connection pool
|
|
96
|
+
- show_sql=False: bool, if True, print sql
|
|
97
|
+
- debug=False: bool, if True, print debug context
|
|
92
98
|
|
|
93
99
|
Other parameters of connection pool refer to DBUtils: https://webwareforpython.github.io/DBUtils/main.html#pooleddb-pooled-db
|
|
94
100
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
sqlexecutorx>=1.8.8
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|