diff --git a/CmdLets/doc/Import-FilesToDatabase.md b/CmdLets/doc/Import-FilesToDatabase.md index 50e9bd2..20182da 100644 --- a/CmdLets/doc/Import-FilesToDatabase.md +++ b/CmdLets/doc/Import-FilesToDatabase.md @@ -13,11 +13,7 @@ Pupulates the powerLoad database with folders and files from the given list of f ## SYNTAX ``` -Import-FilesToDatabase [-Files] [-AddVersions] [[-FileCategory] ] - [[-FileRevisionDefinition] ] [[-FileLifeCycleState] ] [[-FileLifeCycleDefinition] ] - [[-FileRevisionLabel] ] [[-FileClassification] ] [[-FileCreateUser] ] - [[-ErrorCSVPath] ] [[-rootDirectories] ] [[-FolderCategory] ] - [[-FolderCreateUser] ] [] +Import-FilesToDatabase [-Files] [[-rootDirectories] ] [-AddVersions] [[-ErrorCSVPath] ] [] ``` ## DESCRIPTION @@ -40,148 +36,13 @@ Gets All the Files in the Path C:\temp\Files and Imports them into your IDB with ```powershell PS C:\> $files = Get-ChildItem -Path 'C:\temp\Files' -Recurse $pathsArray = $files | ForEach-Object { $_.FullName } - Import-FilesToDatabase -Files $pathsArray -AddVersions -ErrorCSVPath 'C:\temp\Errors.csv' -FileCreateUser 'Daniel' -FileLifeCycleState 'Finish' + Import-FilesToDatabase -Files $pathsArray -AddVersions -ErrorCSVPath 'C:\temp\Errors.csv' ``` Gets All the Files in the Path C:\temp\Files and Imports them into your IDB with the given Values. If any errors occure, they will be written into the File C:\temp\Errors.csv. When there are some changes in a file, a new version will be added. ## PARAMETERS -### -AddVersions -Treats a file change/update as a new version - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ErrorCSVPath -The Path for the CSV File with all Errors in it. Example: "C:\temp\Vault\Errors.csv" - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileCategory -Vault file category for all imported files. Default: "Engineering" - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileClassification -Vault classification for all imported files. Default: "NONE" - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileCreateUser -Vault create user for all imported files. Default: "Migraftion" - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileLifeCycleDefinition -Vault lifecycle definition for all imported files. Default: "Flexible Release Process" - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileLifeCycleState -Vault lifecycle state for all imported files. Default: "Work in Progress" - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileRevisionDefinition -Vault revision definition for all imported files. Default: "Standard Alphabetic Format" - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileRevisionLabel -Vault revision label for all imported files. Default: A - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Files The Files to Import. Example: $files @@ -197,11 +58,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FolderCategory -Vault category for all imported folders. Default: "Folder" +### -rootDirectories +Specify Rootdirectories which get replaced by $. Example: @{"C:\TEMP\sample" = "$"} ```yaml -Type: String +Type: Hashtable Parameter Sets: (All) Aliases: @@ -212,26 +73,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FolderCreateUser -Vault create user for all imported folders. Default: "Migration" +### -AddVersions +Treats a file change/update as a new version ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False -Position: 0 +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -rootDirectories -Specify Rootdirectories which get replaced by $. Example: @{"C:\TEMP\sample" = "$"} +### -ErrorCSVPath +The Path for the CSV File with all Errors in it. Example: "C:\temp\Vault\Errors.csv" ```yaml -Type: Hashtable +Type: String Parameter Sets: (All) Aliases: @@ -242,6 +103,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/CmdLets/doc/Invoke-PowerLoadSql.md b/CmdLets/doc/Invoke-PowerLoadSql.md index 839781c..eb6e7b0 100644 --- a/CmdLets/doc/Invoke-PowerLoadSql.md +++ b/CmdLets/doc/Invoke-PowerLoadSql.md @@ -13,7 +13,7 @@ Executes SQL statements on the specified database connection. ## SYNTAX ``` -Invoke-PowerLoadSql [[-Statement] ] [[-ScriptPath] ] [-OutputAsTable] [] +Invoke-PowerLoadSql [[-Statement] ] [[-ScriptPath] ] [[-Timeout] ] [-OutputAsTable] [] ``` ## DESCRIPTION @@ -31,6 +31,14 @@ Executes the SQL Statement 'SELECT * FROM Files' and prints out every match. ### Example 2 ```powershell +PS C:\> Invoke-PowerLoadSql -Statement 'SELECT * FROM Files' -Timeout 90 +``` + +Executes the SQL Statement 'SELECT * FROM Files' and prints out every match. +The timeout for this SQL statement is set to 90 seconds + +### Example 3 +```powershell PS C:\> Invoke-PowerLoadSql -ScriptPath 'C:\temp\script.sql' ``` @@ -83,6 +91,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Timeout +Sets the SQL command timeout in seconds. If not specified, the default timeout will apply for the SQL statement + +```yaml +Type: int +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).