drifTech-lib 0.2.3__tar.gz → 0.2.5__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.

Potentially problematic release.


This version of drifTech-lib might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: drifTech-lib
3
- Version: 0.2.3
3
+ Version: 0.2.5
4
4
  Summary: Common files/functions across most drifTech software
5
5
  Author: driftbluestone
6
6
  Author-email: driftbluestone <driftbluestone@gmail.com>
@@ -8,7 +8,7 @@ build-backend = "uv_build"
8
8
 
9
9
  [project]
10
10
  name = "drifTech-lib"
11
- version = "0.2.3"
11
+ version = "0.2.5"
12
12
  description = "Common files/functions across most drifTech software"
13
13
  readme = "README.md"
14
14
  requires-python = ">=3.14"
@@ -8,7 +8,7 @@ build-backend = "uv_build"
8
8
 
9
9
  [project]
10
10
  name = "drifTech-lib"
11
- version = "0.2.3"
11
+ version = "0.2.5"
12
12
  authors = [{name = "driftbluestone", email = "driftbluestone@gmail.com"}]
13
13
  description = "Common files/functions across most drifTech software"
14
14
  readme = "README.md"
@@ -17,6 +17,7 @@ def table(name: str, columns: list[str]):
17
17
  Create a table. Columns should be formatted like `column_name TYPE` e.g. `server_id BIGINT PRIMARY KEY` or `data JSONB`
18
18
  """
19
19
  run(f"CREATE TABLE IF NOT EXISTS {SCHEMA.as_string()}.{name} ({", ".join(columns)});")
20
+ logger.info(f"Created table {name} if it didn't already exist")
20
21
 
21
22
  def check_connection():
22
23
  cursor.execute("SELECT version();")
@@ -130,4 +131,5 @@ def start(schema: str, host: str, name: str, user: str, password: str, port: int
130
131
  cursor = connection.cursor()
131
132
  check_connection()
132
133
  logger.info("Connected to database.")
133
- connection.execute(f"CREATE SCHEMA IF NOT EXISTS {SCHEMA.as_string()};")
134
+ run(f"CREATE SCHEMA IF NOT EXISTS {SCHEMA.as_string()};")
135
+ logger.info(f"Created schema {schema} if it didn't already exist")
File without changes
File without changes