DbFlow 0.13.0
dotnet add package DbFlow --version 0.13.0
NuGet\Install-Package DbFlow -Version 0.13.0
<PackageReference Include="DbFlow" Version="0.13.0" />
<PackageVersion Include="DbFlow" Version="0.13.0" />
<PackageReference Include="DbFlow" />
paket add DbFlow --version 0.13.0
#r "nuget: DbFlow, 0.13.0"
#:package DbFlow@0.13.0
#addin nuget:?package=DbFlow&version=0.13.0
#tool nuget:?package=DbFlow&version=0.13.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.404)
- Microsoft.Data.SqlClient (>= 7.1.1)
- System.Security.Cryptography.Pkcs (>= 9.0.23)
-
net8.0
- FSharp.Core (>= 10.1.404)
- Microsoft.Data.SqlClient (>= 7.1.1)
- System.Security.Cryptography.Pkcs (>= 9.0.23)
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.13.0 | 102 | 11/10/2026 |
| 0.12.0 | 177 | 8/11/2026 |
| 0.11.2 | 158 | 5/11/2026 |
| 0.11.1 | 136 | 5/11/2026 |
| 0.11.0 | 136 | 5/10/2026 |
| 0.10.1 | 153 | 5/7/2026 |
| 0.10.0 | 169 | 4/22/2026 |
| 0.9.0 | 149 | 4/6/2026 |
| 0.8.2 | 145 | 3/27/2026 |
| 0.8.1 | 157 | 3/27/2026 |
| 0.8.0 | 183 | 2/15/2026 |
| 0.7.0 | 146 | 2/15/2026 |
| 0.6.1 | 150 | 2/14/2026 |
| 0.6.0 | 333 | 11/14/2025 |
| 0.5.1 | 244 | 10/9/2025 |
| 0.5.0 | 249 | 10/8/2025 |
| 0.4.0 | 360 | 9/19/2025 |
| 0.3.0 | 280 | 8/31/2025 |
| 0.2.0-beta01 | 181 | 8/23/2025 |
| 0.1.0-beta01 | 180 | 8/23/2025 |
- Add support for fetching "text plans" (QueryMeta.Sys.estimatedTextPlan - "SET SHOWPLAN_TEXT ON")
- Add support for fetching "full plans" (QueryMeta.Sys.estimatedPlan - "SET SHOWPLAN_ALL ON")
- Update vulnerabilities in dependencies (NuGet packages)