DbFlow 0.0.1-alpha04

This is a prerelease version of DbFlow.
There is a newer version of this package available.
See the version list below for details.
dotnet add package DbFlow --version 0.0.1-alpha04
                    
NuGet\Install-Package DbFlow -Version 0.0.1-alpha04
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DbFlow" Version="0.0.1-alpha04" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DbFlow" Version="0.0.1-alpha04" />
                    
Directory.Packages.props
<PackageReference Include="DbFlow" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DbFlow --version 0.0.1-alpha04
                    
#r "nuget: DbFlow, 0.0.1-alpha04"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DbFlow@0.0.1-alpha04
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DbFlow&version=0.0.1-alpha04&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=DbFlow&version=0.0.1-alpha04&prerelease
                    
Install as a Cake Tool

DbFlow

DbFlow is a tool with the ambition to help in all stages of developing, testing and releasing databases.

The current version of DbFlow can be used for

  • generate complete scripts for a database schema that can be used for improved version control
  • clone an existing database to a local copy that can be used for unit testing or other

DbFlow supports

  • Microsoft Sql Server
  • (PostgreSql is in planning stage)

To clone a database:

open Microsoft.Data.SqlClient
open DbFlow
open DbFlow.SqlServer

let options = Options.Default

let logger _message = ()

let srcConnectionStr = ...
let dstConnectionStr = ...

let dbSchema = 
    use connection = new SqlConnection(srcConnectionStr)
    connection.Open()
    Execute.readSchema logger options connection

use connection = new SqlConnection(dstConnectionStr)
connection.Open()
Execute.clone logger options dbSchema connection 

To generate scripts from a database:

open Microsoft.Data.SqlClient
open DbFlow
open DbFlow.SqlServer

let options = Options.Default

let logger _message = ()

let srcConnectionStr = ...
let dstDirectory = ...

let dbSchema = 
    use connection = new SqlConnection(srcConnectionStr)
    connection.Open()
    Execute.readSchema logger options connection

Execute.generateScriptFiles options dbSchema dstDirectory   
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.0 223 9/19/2025
0.3.0 160 8/31/2025
0.2.0-beta01 53 8/23/2025
0.1.0-beta01 49 8/23/2025
0.0.1-alpha07 85 8/22/2025
0.0.1-alpha06 89 8/22/2025
0.0.1-alpha05 118 8/19/2025
0.0.1-alpha04 111 8/19/2025
0.0.1-alpha03 124 8/11/2025
0.0.1-alpha02 116 8/10/2025
0.0.1-alpha01 116 8/10/2025