sqlccc 1.0.1__tar.gz → 1.1.0__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.4
2
2
  Name: sqlccc
3
- Version: 1.0.1
3
+ Version: 1.1.0
4
4
  Summary: A cyclomatix complexity calculator for SQL
5
5
  Author-email: Søren Brønsted <soren@bronsted.dk>
6
6
  License-Expression: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sqlccc"
3
- version = "1.0.1"
3
+ version = "1.1.0"
4
4
  authors = [
5
5
  { name="Søren Brønsted", email="soren@bronsted.dk" },
6
6
  ]
@@ -9,9 +9,9 @@ Args:
9
9
  Returns:
10
10
  int: The calculated cyclomatic complexity.
11
11
  """
12
- def calc(sql: str) -> int:
12
+ def calc(sql: str, dialect='snowflake') -> int:
13
13
  result = 1
14
- parsed = sg.parse_one(sql)
14
+ parsed = sg.parse_one(sql,dialect=dialect)
15
15
  cyclomatics = [
16
16
  # Logic
17
17
  sg.exp.And, sg.exp.Or, sg.exp.In, sg.exp.Between, sg.exp.Like, sg.exp.Group,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlccc
3
- Version: 1.0.1
3
+ Version: 1.1.0
4
4
  Summary: A cyclomatix complexity calculator for SQL
5
5
  Author-email: Søren Brønsted <soren@bronsted.dk>
6
6
  License-Expression: Apache-2.0
File without changes
File without changes
File without changes