SQLEventAnalysis.psm1

# SQLEventAnalysis.psm1

using namespace System.Collections.Generic
using namespace System.Management.Automation
# Load classes
foreach ($classFile in (Get-ChildItem -Path "$PSScriptRoot\Classes\*.ps1")) {
    . $classFile.FullName
}

# Load private functions
foreach ($privateFunction in (Get-ChildItem -Path "$PSScriptRoot\Private\*.ps1")) {
    . $privateFunction.FullName
}

# Load public functions
foreach ($publicFunction in (Get-ChildItem -Path "$PSScriptRoot\Public\*.ps1")) {
    . $publicFunction.FullName
}

# Export public functions
Export-ModuleMember -Function (Get-ChildItem -Path "$PSScriptRoot\Public\*.ps1").BaseName