SQLExecX 2.2.2__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.
Files changed (28) hide show
  1. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/PKG-INFO +2 -5
  2. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/SQLExecX.egg-info/PKG-INFO +2 -5
  3. SQLExecX-2.2.4/SQLExecX.egg-info/requires.txt +1 -0
  4. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/setup.py +2 -2
  5. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/__init__.py +10 -4
  6. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/dialect.py +2 -2
  7. SQLExecX-2.2.2/SQLExecX.egg-info/requires.txt +0 -1
  8. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/LICENSE +0 -0
  9. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/README.rst +0 -0
  10. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/SQLExecX.egg-info/SOURCES.txt +0 -0
  11. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/SQLExecX.egg-info/dependency_links.txt +0 -0
  12. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/SQLExecX.egg-info/not-zip-safe +0 -0
  13. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/SQLExecX.egg-info/top_level.txt +0 -0
  14. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/setup.cfg +0 -0
  15. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/constant.py +0 -0
  16. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/exec.py +0 -0
  17. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/loader.py +0 -0
  18. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/log_support.py +0 -0
  19. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/page_exec.py +0 -0
  20. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/sql_exec.py +0 -0
  21. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/sql_support.py +0 -0
  22. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/table_exec.py +0 -0
  23. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/table_limit_exec.py +0 -0
  24. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/table_order_by.py +0 -0
  25. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/table_page_exec.py +0 -0
  26. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/table_support.py +0 -0
  27. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/sqlexecx/utils.py +0 -0
  28. {SQLExecX-2.2.2 → SQLExecX-2.2.4}/test/test.py +0 -0
@@ -1,16 +1,15 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: SQLExecX
3
- Version: 2.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
7
7
  Author-email: fkfkfk2024@2925.com
8
- License: UNKNOWN
9
8
  Keywords: SQL,MySQL,PostgreSQL,SQLite,Database,Python,RDB
10
- Platform: UNKNOWN
11
9
  Requires-Python: >=3.6
12
10
  Description-Content-Type: text/markdown
13
11
  License-File: LICENSE
12
+ Requires-Dist: sqlexecutorx>=1.8.9
14
13
 
15
14
  Usage Sample
16
15
  ''''''''''''
@@ -197,5 +196,3 @@ If you want to operate MySQL database like Mybatis, may be you need MySQLX: http
197
196
  If you want to operate PostgreSQL databaselike Mybatis, may be you need PgSQLX: https://pypi.org/project/pgsqlx
198
197
 
199
198
  If you wanted simultaneously support MySQL and PostgreSQL, may be you need BatisX: https://pypi.org/project/batisx
200
-
201
-
@@ -1,16 +1,15 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: SQLExecX
3
- Version: 2.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
7
7
  Author-email: fkfkfk2024@2925.com
8
- License: UNKNOWN
9
8
  Keywords: SQL,MySQL,PostgreSQL,SQLite,Database,Python,RDB
10
- Platform: UNKNOWN
11
9
  Requires-Python: >=3.6
12
10
  Description-Content-Type: text/markdown
13
11
  License-File: LICENSE
12
+ Requires-Dist: sqlexecutorx>=1.8.9
14
13
 
15
14
  Usage Sample
16
15
  ''''''''''''
@@ -197,5 +196,3 @@ If you want to operate MySQL database like Mybatis, may be you need MySQLX: http
197
196
  If you want to operate PostgreSQL databaselike Mybatis, may be you need PgSQLX: https://pypi.org/project/pgsqlx
198
197
 
199
198
  If you wanted simultaneously support MySQL and PostgreSQL, may be you need BatisX: https://pypi.org/project/batisx
200
-
201
-
@@ -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.2',
20
+ version='2.2.4',
21
21
  install_requires=[
22
- 'sqlexecutorx>=1.8.7',
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
- :param driver=None: str|Driver, import driver, 'import pymysql'
89
- :param pool_size=0: int, default 0, size of connection pool
90
- :param show_sql=False: bool, if True, print sql
91
- :param debug=False: bool, if True, print debug context
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
 
@@ -210,7 +210,7 @@ class SQLiteDialect(MySQLDialect):
210
210
  @staticmethod
211
211
  def show_tables(schema: Optional[str]):
212
212
  return [table[0] for table in select("SELECT name FROM sqlite_master WHERE type='table'")]
213
-
213
+
214
214
 
215
215
  _DIALECT = None
216
216
 
@@ -227,7 +227,7 @@ class Dialect:
227
227
  _DIALECT = PostgresDialect(engine)
228
228
  elif Engine.ORACLE == engine:
229
229
  _DIALECT = OracleDialect(engine)
230
- elif Engine.SQLITE == engine:
230
+ elif engine in (Engine.SQLITE, Engine.TURSO):
231
231
  _DIALECT = SQLiteDialect(engine)
232
232
  else:
233
233
  _DIALECT = BaseDialect(engine)
@@ -1 +0,0 @@
1
- sqlexecutorx>=1.8.7
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