Compare Schema - Ackara/Daterpillar GitHub Wiki

Compare-Schema

SYNOPSIS

This cmdlet compares the structure of two [Acklann.Daterpillar.Schema] objects.

SYNTAX

Set 1

Compare-Schema [-Source] <Schema> [-Target] <Schema> [<CommonParameters>]

DESCRIPTION

Compare two [Acklann.Daterpillar.Schema] objects; returned is a PSObject with two properties 'State' and 'Differences'. The 'State' property is a enum value of type [Acklann.Daterpillar.Migration.MigrationState] where as the 'Differences' property is a string listing the differences between the passed objects.

EXAMPLES

EXAMPLE 1

C:\PS> Compare-Schema $left $right | Select-Object -ExpandProperty State

This example, compares two [Acklann.Daterpillar.Schema] objects ($left and $right) then selects the returned object's State property, which is an enum of Type [Acklann.Daterpillar.Migration.MigrationState].

EXAMPLE 2

C:\PS> Compare-Schema $left $right | Select-Object -ExpandProperty Differences;

This example, compares two [Acklann.Daterpillar.Schema] objects ($left and $right) then selects the returned object's Differences property, which is a string describing the differences between the two objects.

PARAMETERS

Source

The source/left schema.

Type: Schema
Parameter Sets: Set 1
Aliases: left , src

Required: true
Position: 1
Default Value: 
Pipeline Input: false

Target

The target/right schema.

Type: Schema
Parameter Sets: Set 1
Aliases: right , dest

Required: true
Position: 2
Default Value: 
Pipeline Input: 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).

INPUTS

Acklann.Daterpillar.Schema

OUTPUTS

PSObject

NOTES

RELATED LINKS

Online Version:

Generated by: PowerShell HelpWriter 2017 v2.1.34

⚠️ **GitHub.com Fallback** ⚠️