Skip to content

Pushing SqlPipeline to 0.3.3 and Fixing the Pester Tests for SqlPipeline#82

Merged
gitfvb merged 8 commits intomainfrom
dev
Mar 30, 2026
Merged

Pushing SqlPipeline to 0.3.3 and Fixing the Pester Tests for SqlPipeline#82
gitfvb merged 8 commits intomainfrom
dev

Conversation

@gitfvb
Copy link
Copy Markdown
Contributor

@gitfvb gitfvb commented Mar 30, 2026

No description provided.

claude and others added 6 commits March 28, 2026 08:39
…endency in ImportDependency style

- ImportDependency/Tests/ImportDependency.Tests.ps1 (new): Pester tests covering
  Get-TemporaryPath, Get-LocalPackage (nuspec discovery, properties, multi-root),
  Get-PSEnvironment (all keys, types, skip flags, local-package integration),
  and Import-Dependency (no-op, missing module, KeepLogfile, empty lib folder)

- SqlPipeline/Tests/SqlPipeline.Tests.ps1: Extend with DuckDB test suites that
  skip gracefully when DuckDB.NET is unavailable; covers Invoke-DuckDBQuery,
  Get-DuckDBData, Add-RowsToDuckDB (insert, UPSERT, schema evolution, batching),
  Set-LoadMetadata / Get-LastLoadTimestamp, Initialize-SQLPipeline / Close-SqlPipeline
  (file persistence, connection state), and Export-DuckDBToParquet

- InstallDependency/InstallDependency/InstallDependency.psm1: Rewritten to match
  ImportDependency style — verbose param, notes region, PSEdition=='Core' check,
  inaccessible module-path cleanup, Windows-specific function loading, executionPolicy
  variable, 'win' runtime fallback, MacOS elevation support, ListAvailable for
  PackageManagement/PowerShellGet, background jobs using .psd1 scanning

- InstallDependency/InstallDependency/Public/Install-Dependency.ps1: Refactored to
  use proper Begin/Process/End blocks (logfile setup and counter init in Begin,
  install logic in Process, status summary and logfile restore in End), matching
  the Import-Dependency.ps1 pattern; SuppressWarnings/writeToHost wired through

https://claude.ai/code/session_01W4sAhVb9Y6Lkr53VYq5hdq
…Pv8g

Add Pester tests for ImportDependency and DuckDB, continue InstallDependency in ImportDependency style
Ignore packages in a lib folder
- Extending Install-SqlPipeline to install DuckDB.net 1.4.4 when using PowerShell 5.1 (latest supported version), pwsh is supporting all latest versions
- Fixing to not cancel the module import if SimplySQL does not match the current processor architecture
- Fixing returned values for last loaded timestamp, duckdb columns, existing table, Get-DuckDB data in general
- Fixing datatype matching for DuckDB, as there is not Int32
- Fixing the fallback of a closed connection to existing in-memory connection
@gitfvb gitfvb self-assigned this Mar 30, 2026
gitfvb added 2 commits March 30, 2026 15:53
Fixing package installation with PowerShell 5.1 because Expand-Archive only supports *.zip files
@gitfvb gitfvb merged commit e41e036 into main Mar 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants