DbFlow 0.11.0
dotnet add package DbFlow --version 0.11.0
NuGet\Install-Package DbFlow -Version 0.11.0
<PackageReference Include="DbFlow" Version="0.11.0" />
<PackageVersion Include="DbFlow" Version="0.11.0" />
<PackageReference Include="DbFlow" />
paket add DbFlow --version 0.11.0
#r "nuget: DbFlow, 0.11.0"
#:package DbFlow@0.11.0
#addin nuget:?package=DbFlow&version=0.11.0
#tool nuget:?package=DbFlow&version=0.11.0
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 => { });
using var sourceConnection = new Microsoft.Data.SqlClient.SqlConnection(sourceConnectionString);
sourceConnection.Open();
var schema = Execute.readSchema(logger, ReadOptions.Default, sourceConnection);
var cloneDb = Execute.cloneToLocal(logger, LocalDbOptions.Default, ScriptOptions.Default, schema);
To generate scripts from a database (C#):
var logger = LoggerModule.fromFunc(s => { });
using var sourceConnection = new Microsoft.Data.SqlClient.SqlConnection(sourceConnectionString);
sourceConnection.Open();
var schema = Execute.readSchema(logger, ReadOptions.Default, sourceConnection);
Execute.generateScriptFiles(ScriptOptions.Default, 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 is compatible. 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. |
-
net10.0
- FSharp.Core (>= 10.1.203)
- Microsoft.Data.SqlClient (>= 7.0.1)
-
net8.0
- FSharp.Core (>= 10.1.203)
- Microsoft.Data.SqlClient (>= 7.0.1)
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.11.0 | 0 | 5/10/2026 |
| 0.10.1 | 34 | 5/7/2026 |
| 0.10.0 | 114 | 4/22/2026 |
| 0.9.0 | 103 | 4/6/2026 |
| 0.8.2 | 108 | 3/27/2026 |
| 0.8.1 | 111 | 3/27/2026 |
| 0.8.0 | 139 | 2/15/2026 |
| 0.7.0 | 104 | 2/15/2026 |
| 0.6.1 | 115 | 2/14/2026 |
| 0.6.0 | 299 | 11/14/2025 |
| 0.5.1 | 210 | 10/9/2025 |
| 0.5.0 | 213 | 10/8/2025 |
| 0.4.0 | 325 | 9/19/2025 |
| 0.3.0 | 249 | 8/31/2025 |
| 0.2.0-beta01 | 145 | 8/23/2025 |
| 0.1.0-beta01 | 149 | 8/23/2025 |
| 0.0.1-alpha07 | 176 | 8/22/2025 |
| 0.0.1-alpha06 | 173 | 8/22/2025 |
| 0.0.1-alpha05 | 197 | 8/19/2025 |
| 0.0.1-alpha04 | 195 | 8/19/2025 |
- Added experimental support for ShowPlanXml and "QueryMeta" to analyze query plans and extract metadata.
- Fixed a bug in the schema comparison logic that caused incorrect results in some cases.
- Updated dependencies to the latest versions, including Microsoft.Data.SqlClient 7.0.1 and FSharp.Core 10.1.203.