FAKE - F# Make - A DSL for build tasks and more FAKE
6.1.3

Lookig for older versions of the documentation, pre FAKE v6? See 

v5.fake.build

SqlPackage Module

Contains helpers around deploying databases.

Types and nested modules

Type/Module Description

PropertyKeys

DeployAction

The type of action to execute.

DeployDbArgs

Configuration arguments for DacPac deploy

Functions and values

Function or value Description

SqlPackage.deployDb setParams

Full Usage: SqlPackage.deployDb setParams

Parameters:

Deploys a SQL DacPac or database to another database or DacPac.

setParams : DeployDbArgs -> DeployDbArgs

The SQL deployment parameters

Example


 Target.create "DeployLocalDb" (fun _ ->
     let connectionString = "Data Source=(localdb)\\MSSQLLocalDB;Integrated Security=True;Database=MyDatabase;Pooling=False"
     let dacPacPath = "path/to/dbProject.dacpac"
     SqlPackage.deployDb (fun args -> { args with Source = dacPacPath; Destination = connectionString }) |> ignore
 )

Active patterns

Active pattern Description

SqlPackage.(|NullOrEmptyString|NonEmptyString|) x

Full Usage: SqlPackage.(|NullOrEmptyString|NonEmptyString|) x

Parameters:
    x : string

Returns: Choice<unit, string>
x : string
Returns: Choice<unit, string>