Skip to content

Commit c80e439

Browse files
Import-DbaCsv - Smart Type Detection & Column Optimization (#10036)
1 parent a7b5331 commit c80e439

File tree

4 files changed

+626
-10
lines changed

4 files changed

+626
-10
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "2025.11.29-preview-new-20251129132142",
3-
"notes": "Version of dbatools.library to use for CI/CD and development."
2+
"version": "2025.12.4-preview-csvvvvvv-20251204203741",
3+
"notes": "Version of dbatools.library to use for CI/CD and development"
44
}

CLAUDE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,31 @@ Don't add excessive tests, but don't skip tests either. When making changes:
966966
- Creating a new command? Add parameter validation and 1-3 integration tests
967967
- Refactoring without behavior changes? Existing tests may be sufficient
968968

969+
### Local Testing Setup
970+
971+
To test commands locally during development:
972+
973+
```powershell
974+
# 1. Import the module directly from the psm1 file
975+
Import-Module .\dbatools.psm1
976+
# 1a. ONLY IF any errors about dbatools.library
977+
Import-Module C:\gallery\dbatools.library
978+
979+
# 2. Get the test configuration (private command)
980+
$TestConfig = Get-TestConfig
981+
982+
# 3. Now you can use $TestConfig properties in your tests
983+
$TestConfig.instance1 # First test SQL instance
984+
$TestConfig.instance2 # Second test SQL instance
985+
$TestConfig.instance3 # Third test SQL instance
986+
$TestConfig.SqlCred # Test credentials, all connections need this
987+
$TestConfig.Temp # Temp directory for test files
988+
# 4. Set the default paras for sqlcred
989+
$PSDefaultParameterValues["*:SqlCredential"] = $TestCofig.SqlCred
990+
```
991+
992+
This allows you to manually test commands against actual SQL Server instances before running the full test suite.
993+
969994
## VERIFICATION CHECKLIST
970995

971996
**Comment and Parameter Preservation:**

0 commit comments

Comments
 (0)