sql-blocks 0.0.9__tar.gz → 0.1.1__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.
- {sql_blocks-0.0.9/sql_blocks.egg-info → sql_blocks-0.1.1}/PKG-INFO +1 -1
- {sql_blocks-0.0.9 → sql_blocks-0.1.1}/pyproject.toml +1 -1
- {sql_blocks-0.0.9 → sql_blocks-0.1.1}/setup.py +1 -1
- sql_blocks-0.1.1/sql_blocks/__init__.py +1 -0
- {sql_blocks-0.0.9 → sql_blocks-0.1.1}/sql_blocks/sql_blocks.py +1 -1
- {sql_blocks-0.0.9 → sql_blocks-0.1.1/sql_blocks.egg-info}/PKG-INFO +1 -1
- sql_blocks-0.0.9/sql_blocks/__init__.py +0 -1
- {sql_blocks-0.0.9 → sql_blocks-0.1.1}/LICENSE +0 -0
- {sql_blocks-0.0.9 → sql_blocks-0.1.1}/README.md +0 -0
- {sql_blocks-0.0.9 → sql_blocks-0.1.1}/setup.cfg +0 -0
- {sql_blocks-0.0.9 → sql_blocks-0.1.1}/sql_blocks.egg-info/SOURCES.txt +0 -0
- {sql_blocks-0.0.9 → sql_blocks-0.1.1}/sql_blocks.egg-info/dependency_links.txt +0 -0
- {sql_blocks-0.0.9 → sql_blocks-0.1.1}/sql_blocks.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sql_blocks
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: Allows you to create objects for parts of SQL query commands. Also to combine these objects by joining them, adding or removing parts...
|
5
5
|
Home-page: https://github.com/julio-cascalles/sql_blocks
|
6
6
|
Author: Júlio Cascalles
|
@@ -0,0 +1 @@
|
|
1
|
+
from sql_blocks.sql_blocks import *
|
@@ -157,7 +157,7 @@ class ExpressionField:
|
|
157
157
|
self.expr = expr
|
158
158
|
|
159
159
|
def add(self, name: str, main: SQLObject):
|
160
|
-
main.values.setdefault(SELECT, []).append(self.format)
|
160
|
+
main.values.setdefault(SELECT, []).append(self.format(name, main))
|
161
161
|
|
162
162
|
def format(self, name: str, main: SQLObject) -> str:
|
163
163
|
return self.expr.replace('%', Field.format(name, main))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sql_blocks
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: Allows you to create objects for parts of SQL query commands. Also to combine these objects by joining them, adding or removing parts...
|
5
5
|
Home-page: https://github.com/julio-cascalles/sql_blocks
|
6
6
|
Author: Júlio Cascalles
|
@@ -1 +0,0 @@
|
|
1
|
-
from sql_blocks import *
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|