duckrun 0.2.0__tar.gz → 0.2.1__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.
- {duckrun-0.2.0 → duckrun-0.2.1}/PKG-INFO +1 -1
- {duckrun-0.2.0 → duckrun-0.2.1}/duckrun/core.py +8 -2
- {duckrun-0.2.0 → duckrun-0.2.1}/duckrun.egg-info/PKG-INFO +1 -1
- {duckrun-0.2.0 → duckrun-0.2.1}/pyproject.toml +1 -1
- {duckrun-0.2.0 → duckrun-0.2.1}/LICENSE +0 -0
- {duckrun-0.2.0 → duckrun-0.2.1}/README.md +0 -0
- {duckrun-0.2.0 → duckrun-0.2.1}/duckrun/__init__.py +0 -0
- {duckrun-0.2.0 → duckrun-0.2.1}/duckrun.egg-info/SOURCES.txt +0 -0
- {duckrun-0.2.0 → duckrun-0.2.1}/duckrun.egg-info/dependency_links.txt +0 -0
- {duckrun-0.2.0 → duckrun-0.2.1}/duckrun.egg-info/requires.txt +0 -0
- {duckrun-0.2.0 → duckrun-0.2.1}/duckrun.egg-info/top_level.txt +0 -0
- {duckrun-0.2.0 → duckrun-0.2.1}/setup.cfg +0 -0
@@ -354,7 +354,13 @@ class Duckrun:
|
|
354
354
|
attached_count = 0
|
355
355
|
for schema_name, table_name in tables:
|
356
356
|
try:
|
357
|
-
|
357
|
+
if self.scan_all_schemas:
|
358
|
+
# Create proper schema.table structure in DuckDB
|
359
|
+
self.con.sql(f"CREATE SCHEMA IF NOT EXISTS {schema_name}")
|
360
|
+
view_name = f"{schema_name}.{table_name}"
|
361
|
+
else:
|
362
|
+
# Single schema mode - use just table name
|
363
|
+
view_name = table_name
|
358
364
|
|
359
365
|
self.con.sql(f"""
|
360
366
|
CREATE OR REPLACE VIEW {view_name}
|
@@ -371,7 +377,7 @@ class Duckrun:
|
|
371
377
|
print(f"{'='*60}\n")
|
372
378
|
|
373
379
|
if self.scan_all_schemas:
|
374
|
-
print(f"\n💡 Note: Tables
|
380
|
+
print(f"\n💡 Note: Tables use schema.table format (e.g., aemo.calendar, dbo.results)")
|
375
381
|
print(f" Default schema for operations: {self.schema}\n")
|
376
382
|
|
377
383
|
except Exception as e:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|