sql-blocks 1.2025.701__tar.gz → 1.2025.702__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sql_blocks
3
- Version: 1.2025.701
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sql_blocks"
3
- version = "1.2025.0701"
3
+ version = "1.2025.0702"
4
4
  authors = [
5
5
  { name="Julio Cascalles", email="julio.cascalles@outlook.com" },
6
6
  ]
@@ -3,7 +3,7 @@ from setuptools import setup
3
3
 
4
4
  setup(
5
5
  name = 'sql_blocks',
6
- version = '1.2025.0701',
6
+ version = '1.2025.0702',
7
7
  author = 'Júlio Cascalles',
8
8
  author_email = 'julio.cascalles@outlook.com',
9
9
  packages = ['sql_blocks'],
@@ -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.701
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
File without changes