Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Creates a new Populated Template.
By default this will:

  • Validate all xml files,
  • Merge descriptor files,
  • Create the manifest file required by the bulk loader
  • Create all the databases needed to create and load data into the template (empty, bulkLoadOds, bulk, and populated databases)
  • Load data into the populated template database using the bulk loader
  • Create a backup of the populated template database
  • Create a nuspec template
  • Resets the admin and security database
  • Creates a new database for the populated template data to be loaded into
  • Restores packages and build the bulk load client
  • Copies sample files to isolate the files into two sections one for each of the two load scenarios
  • Generates two apiclients with key/secret for the two necessary claimsets
  • Starts the test harness api
  • Executes first load scenario using the bootstrap data and claimset
  • Executes second load scenario using the rest of the sample data and the sandbox claimset
  • Stops the test harness api
  • Creates a backup of the new populated template at: Ed-Fi-ODS-Implementation\\DatabaseTemplate\\Database
    Populated.Template.bak
  • Creates a .nuspec file for the new populated template at: Ed-Fi-ODS-Implementation\\DatabaseTemplate\\Database
    Populated.Template.nuspec

Initialize-PopulatedTemplate Aliases

  • initpop
  • Reset-PopulatedTemplateFromSamples

Syntax

Code Block
languagePowershell
themeConfluence
firstline0001
linenumbersfalse
collapsefalse
Initialize-PopulatedTemplate [

...

-samplePath] <String>

...

 [-noExtensions] [-noValidation] [[-

...

engine]

...

 <String>]

...

 [<CommonParameters>]

Parameters

Name

Alias

Description

Required?

Pipeline Input

Default Value

-samplePath


An absolute path to the folder to load samples from, for example: C:\\MySampleXmlData

\


.
Also supports specific version folders of the Data Standard repository, for example: C:\\Ed-Fi-Standard\\v3.0

\


or


C:\\Ed-Fi-Standard\\v2.0

\


|true

false



-noExtensions


Ignores any extension sources when running the sql scripts against the database.

false

false

False

-noValidation


Disables xml validation.

false

false

False

-

bulkRetryCountThe number of additional times to call the bulk loader to attempt to work around multi threading race conditions
described in https://tracker.ed-fi.org/browse/ODS-2096false1

engine


The database engine provider, either 'SQLServer' or 'PostgreSQL'

false

false

SQLServer

Examples

EXAMPLE 1

Code Block
themeConfluence
firstline0001
linenumberstrue
Initialize-

...

PopulatedTempalate -samplePath "C:\edfi\Ed-Fi-Standard\v3.

...

2\"