Skip to content

Example/Test of newer F# scripting features for data import task. import, verify, to domain model, auth, upload, async parallel batch.

Notifications You must be signed in to change notification settings

dmannock/fsharp-5-script-import-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Fsharp 5.0 script import test

Example/Test of newer F# scripting features for data import task.

Some covered newer F# features

  • script downloads package dependencies (nuget)
  • String interpolation
  • anonymous records

What it does

  • Reads file using a typeprovider
    • CsvProvider can be swapped e.g. JsonProvider
  • Validates & maps to a domain type
    • skipping invalid data
  • Fetches Token
    • Identity Server in this case
  • Posts data to API endpoint
    • in parallel Asynchronous batches
  • Results summarised
  • Collates any response errors
    • writes to file ResponseErrors.txt

Requirements

Run

  • Set values for: import file, uri's, secrets, mapped columns, etc
  • run dotnet fsi import.fsx

About

Example/Test of newer F# scripting features for data import task. import, verify, to domain model, auth, upload, async parallel batch.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages