drifTech-lib 0.2.4__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.
- {driftech_lib-0.2.4 → driftech_lib-0.2.5}/PKG-INFO +1 -1
- {driftech_lib-0.2.4 → driftech_lib-0.2.5}/pyproject.toml +1 -1
- {driftech_lib-0.2.4 → driftech_lib-0.2.5}/pyproject.toml.orig +1 -1
- {driftech_lib-0.2.4 → driftech_lib-0.2.5}/src/driftech_lib/db.py +2 -0
- {driftech_lib-0.2.4 → driftech_lib-0.2.5}/LICENSE +0 -0
- {driftech_lib-0.2.4 → driftech_lib-0.2.5}/README.md +0 -0
- {driftech_lib-0.2.4 → driftech_lib-0.2.5}/src/driftech_lib/__init__.py +0 -0
- {driftech_lib-0.2.4 → driftech_lib-0.2.5}/src/driftech_lib/ipc/__init__.py +0 -0
- {driftech_lib-0.2.4 → driftech_lib-0.2.5}/src/driftech_lib/ipc/client.py +0 -0
- {driftech_lib-0.2.4 → driftech_lib-0.2.5}/src/driftech_lib/ipc/server.py +0 -0
- {driftech_lib-0.2.4 → driftech_lib-0.2.5}/src/driftech_lib/jsonIO.py +0 -0
|
@@ -8,7 +8,7 @@ build-backend = "uv_build"
|
|
|
8
8
|
|
|
9
9
|
[project]
|
|
10
10
|
name = "drifTech-lib"
|
|
11
|
-
version = "0.2.
|
|
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();")
|
|
@@ -131,3 +132,4 @@ def start(schema: str, host: str, name: str, user: str, password: str, port: int
|
|
|
131
132
|
check_connection()
|
|
132
133
|
logger.info("Connected to database.")
|
|
133
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|