Fmg-SqlDb.psm1


if(!$PSScriptRoot) {
    $PSScriptRoot = $MyInovocation.PSScriptRoot
}

if(!$PSScriptRoot) {
    $PSScriptRoot = Split-Path $MyInovocation.MyCommand.Path
}

Get-Item "$PsScriptRoot\*.ps1" | ForEach-Object {
     . "$($_.FullName)"
}

$functions  = @(
    'Set-DbConnectionString',
    'Get-DbConnectionString',
    'New-DbProviderFactory',
    'Set-DbProviderFactory',
    'Get-DbProviderFactory',
    'Get-DbParameterPrefix',
    'Set-DbParameterPrefix',
    'New-DbConnection',
    'New-DbCommand',
    'Read-DbData',
    'Write-DbData',
    'Invoke-DbCmd'
)
foreach($func in $functions) {
    Export-ModuleMember -Function $func
}