cloudoll 3.0.3__tar.gz → 3.0.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 (44) hide show
  1. {cloudoll-3.0.3 → cloudoll-3.0.4}/PKG-INFO +1 -1
  2. cloudoll-3.0.4/cloudoll/__init__.py +1 -0
  3. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/orm/field.py +3 -2
  4. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/orm/model.py +2 -0
  5. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll.egg-info/PKG-INFO +1 -1
  6. {cloudoll-3.0.3 → cloudoll-3.0.4}/pyproject.toml +1 -1
  7. cloudoll-3.0.3/cloudoll/__init__.py +0 -1
  8. {cloudoll-3.0.3 → cloudoll-3.0.4}/LICENSE +0 -0
  9. {cloudoll-3.0.3 → cloudoll-3.0.4}/README.md +0 -0
  10. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/__main__.py +0 -0
  11. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/cli.py +0 -0
  12. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/clitool/__init__.py +0 -0
  13. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/clitool/cli_main.py +0 -0
  14. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/clitool/m2d.py +0 -0
  15. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/clitool/process.py +0 -0
  16. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/clitool/spinner.py +0 -0
  17. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/clitool/watch.py +0 -0
  18. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/logging/__init__.py +0 -0
  19. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/mail/__init__.py +0 -0
  20. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/mail/smtp.py +0 -0
  21. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/orm/__init__.py +0 -0
  22. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/orm/base.py +0 -0
  23. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/orm/err.py +0 -0
  24. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/orm/mysql.py +0 -0
  25. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/orm/parse.py +0 -0
  26. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/orm/postgres.py +0 -0
  27. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/template/__init__.py +0 -0
  28. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/utils/__init__.py +0 -0
  29. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/utils/common.py +0 -0
  30. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/utils/snowflake.py +0 -0
  31. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/web/__init__.py +0 -0
  32. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/web/core.py +0 -0
  33. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/web/exception.py +0 -0
  34. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/web/html.py +0 -0
  35. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/web/jwt.py +0 -0
  36. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/web/requests.py +0 -0
  37. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll/web/settings.py +0 -0
  38. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll.egg-info/SOURCES.txt +0 -0
  39. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll.egg-info/dependency_links.txt +0 -0
  40. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll.egg-info/entry_points.txt +0 -0
  41. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll.egg-info/requires.txt +0 -0
  42. {cloudoll-3.0.3 → cloudoll-3.0.4}/cloudoll.egg-info/top_level.txt +0 -0
  43. {cloudoll-3.0.3 → cloudoll-3.0.4}/setup.cfg +0 -0
  44. {cloudoll-3.0.3 → cloudoll-3.0.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudoll
3
- Version: 3.0.3
3
+ Version: 3.0.4
4
4
  Summary: Assist in quickly creating distributable microservices based on aiohttp, with a focus on simplicity and ease of use.
5
5
  Home-page: https://github.com/smallerqiu/cloudoll-py
6
6
  Author: Qiu
@@ -0,0 +1 @@
1
+ __version__ = "3.0.4"
@@ -417,7 +417,8 @@ class Expression(FieldBase):
417
417
  is_fun = isinstance(l, Function)
418
418
  p = []
419
419
  q = []
420
- if not is_fun:
420
+ if not is_fun and not isinstance(l, Field):
421
+ # select no need ()
421
422
  q.append("(")
422
423
  if isinstance(l, Field):
423
424
  q.append(l.full_name)
@@ -449,7 +450,7 @@ class Expression(FieldBase):
449
450
  elif r is not None:
450
451
  q.append("?")
451
452
  p.append(r)
452
- if not is_fun:
453
+ if not is_fun and not isinstance(l, Field):
453
454
  q.append(")")
454
455
  q = [str(num) for num in q]
455
456
  return "".join(q), p
@@ -379,6 +379,8 @@ class Model(metaclass=ModelMetaclass):
379
379
 
380
380
  if matches:
381
381
  sql = re.sub(pattern, replacement, sql)
382
+ # pg don not support `
383
+ sql = sql.replace("`", '"')
382
384
 
383
385
  return sql
384
386
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudoll
3
- Version: 3.0.3
3
+ Version: 3.0.4
4
4
  Summary: Assist in quickly creating distributable microservices based on aiohttp, with a focus on simplicity and ease of use.
5
5
  Home-page: https://github.com/smallerqiu/cloudoll-py
6
6
  Author: Qiu
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cloudoll"
7
- version = "3.0.3"
7
+ version = "3.0.4"
8
8
  description = "Assist in quickly creating distributable microservices based on aiohttp, with a focus on simplicity and ease of use."
9
9
  authors = [
10
10
  {name = "Qiu", email = "smallerqiu@gmail.com"},
@@ -1 +0,0 @@
1
- __version__ = "3.0.3"
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