sql-blocks 1.2025.701__py3-none-any.whl → 1.2025.702__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.
- sql_blocks/sql_blocks.py +1 -12
- {sql_blocks-1.2025.701.dist-info → sql_blocks-1.2025.702.dist-info}/METADATA +1 -1
- sql_blocks-1.2025.702.dist-info/RECORD +7 -0
- sql_blocks-1.2025.701.dist-info/RECORD +0 -7
- {sql_blocks-1.2025.701.dist-info → sql_blocks-1.2025.702.dist-info}/LICENSE +0 -0
- {sql_blocks-1.2025.701.dist-info → sql_blocks-1.2025.702.dist-info}/WHEEL +0 -0
- {sql_blocks-1.2025.701.dist-info → sql_blocks-1.2025.702.dist-info}/top_level.txt +0 -0
sql_blocks/sql_blocks.py
CHANGED
@@ -774,6 +774,7 @@ class If(Code, Frame):
|
|
774
774
|
self.field = field
|
775
775
|
self.condition = condition
|
776
776
|
self.func_class = func_class
|
777
|
+
self.pattern = ''
|
777
778
|
super().__init__()
|
778
779
|
|
779
780
|
def format(self, name: str, main: SQLObject) -> str:
|
@@ -2330,15 +2331,3 @@ def detect(text: str, join_queries: bool = True, format: str='') -> Select | lis
|
|
2330
2331
|
result += query
|
2331
2332
|
return result
|
2332
2333
|
# ===========================================================================================//
|
2333
|
-
|
2334
|
-
if __name__ == "__main__":
|
2335
|
-
query = Select(
|
2336
|
-
'Emprestimos e',
|
2337
|
-
taxa=If('atraso', gt(0), Sum).over(
|
2338
|
-
mes_ano=OrderBy.DESC,
|
2339
|
-
_=Rows(Current(), Following(5)),
|
2340
|
-
# _=Rows(Preceding(3), Following()),
|
2341
|
-
# _=Rows( Preceding(3) ),
|
2342
|
-
).As('multa')
|
2343
|
-
)
|
2344
|
-
print(query)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sql_blocks
|
3
|
-
Version: 1.2025.
|
3
|
+
Version: 1.2025.702
|
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,7 @@
|
|
1
|
+
sql_blocks/__init__.py,sha256=5ItzGCyqqa6kwY8wvF9kapyHsAiWJ7KEXCcC-OtdXKg,37
|
2
|
+
sql_blocks/sql_blocks.py,sha256=O5PNPcmFsfAT2gld4c5oy9PHdHW7NIJV-AOUJ68eCWc,79088
|
3
|
+
sql_blocks-1.2025.702.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
|
4
|
+
sql_blocks-1.2025.702.dist-info/METADATA,sha256=vbozm9bhdMoLPlT4juultOhh9ujoOZm-P6kIYngPHSQ,23646
|
5
|
+
sql_blocks-1.2025.702.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
+
sql_blocks-1.2025.702.dist-info/top_level.txt,sha256=57AbUvUjYNy4m1EqDaU3WHeP-uyIAfV0n8GAUp1a1YQ,11
|
7
|
+
sql_blocks-1.2025.702.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
sql_blocks/__init__.py,sha256=5ItzGCyqqa6kwY8wvF9kapyHsAiWJ7KEXCcC-OtdXKg,37
|
2
|
-
sql_blocks/sql_blocks.py,sha256=dv4KLJe2LfxTuJZ8q5ZxJOy4I60LJX5Cl-k7NjmxKHk,79413
|
3
|
-
sql_blocks-1.2025.701.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
|
4
|
-
sql_blocks-1.2025.701.dist-info/METADATA,sha256=d4KXNLmtcIqwyQL2eLM15Zknm01M98DX5FoMgaWBrHA,23646
|
5
|
-
sql_blocks-1.2025.701.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
-
sql_blocks-1.2025.701.dist-info/top_level.txt,sha256=57AbUvUjYNy4m1EqDaU3WHeP-uyIAfV0n8GAUp1a1YQ,11
|
7
|
-
sql_blocks-1.2025.701.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|