DbFlow 0.6.0
dotnet add package DbFlow --version 0.6.0
NuGet\Install-Package DbFlow -Version 0.6.0
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.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DbFlow" Version="0.6.0" />
<PackageReference Include="DbFlow" />
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.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DbFlow, 0.6.0"
#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.6.0
#: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.6.0
#tool nuget:?package=DbFlow&version=0.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DbFlow
DbFlow is a tool with the ambition to help in all stages of developing, testing and deploying databases.
The current version of DbFlow can be used for
- generate complete scripts for a database schema that can be used for (as an example) improved version control
- clone the schema of an existing database to another (resolving dependencies for correct order)
- create a temporary local database that can be used for unit testing or similar
- Experimental:* Copy data from one database to another (resolving and copying dependant data as well)
NuGet: https://www.nuget.org/packages/DbFlow/
Repo: https://github.com/kullbom/dbflow
DbFlow supports
- Microsoft Sql Server
Known bugs/limitation
- Does not consider
ANSI PADDINGof individual columns - XML indexes is not yet fully supported
Planned features:
- Improved support for copying data
- Ignore/transform specific data
- Replace the need for DbUp
- Generate documentation
- Support for PostgreSql
Examples
To clone a database (F#):
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 (F#):
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
To clone a database (C#):
var logger = LoggerModule.fromFunc(s => { });
var options = OptionsModule.Default;
using var sourceConnection = new Microsoft.Data.SqlClient.SqlConnection(sourceConnectionString);
sourceConnection.Open();
var schema = Execute.readSchema(logger, options, sourceConnection);
var cloneDb = Execute.cloneToLocal(logger, options, schema);
To generate scripts from a database (C#):
var logger = LoggerModule.fromFunc(s => { });
var options = OptionsModule.Default;
using var sourceConnection = new Microsoft.Data.SqlClient.SqlConnection(sourceConnectionString);
sourceConnection.Open();
var schema = Execute.readSchema(logger, options, sourceConnection);
Execute.generateScriptFiles(options, schema, destinationDirectory);
| Product | Versions 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.
-
net8.0
- FSharp.Core (>= 9.0.303)
- Microsoft.Data.SqlClient (>= 6.1.3)
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.6.0 | 234 | 11/14/2025 |
| 0.5.1 | 150 | 10/9/2025 |
| 0.5.0 | 151 | 10/8/2025 |
| 0.4.0 | 259 | 9/19/2025 |
| 0.3.0 | 186 | 8/31/2025 |
| 0.2.0-beta01 | 84 | 8/23/2025 |
| 0.1.0-beta01 | 84 | 8/23/2025 |
| 0.0.1-alpha07 | 113 | 8/22/2025 |
| 0.0.1-alpha06 | 116 | 8/22/2025 |
| 0.0.1-alpha05 | 140 | 8/19/2025 |
| 0.0.1-alpha04 | 136 | 8/19/2025 |
| 0.0.1-alpha03 | 149 | 8/11/2025 |
| 0.0.1-alpha02 | 142 | 8/10/2025 |
| 0.0.1-alpha01 | 140 | 8/10/2025 |