FSharp.FIO.PostgreSQL
0.0.40-alpha
This is a prerelease version of FSharp.FIO.PostgreSQL.
dotnet add package FSharp.FIO.PostgreSQL --version 0.0.40-alpha
NuGet\Install-Package FSharp.FIO.PostgreSQL -Version 0.0.40-alpha
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="FSharp.FIO.PostgreSQL" Version="0.0.40-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FSharp.FIO.PostgreSQL" Version="0.0.40-alpha" />
<PackageReference Include="FSharp.FIO.PostgreSQL" />
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 FSharp.FIO.PostgreSQL --version 0.0.40-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FSharp.FIO.PostgreSQL, 0.0.40-alpha"
#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 FSharp.FIO.PostgreSQL@0.0.40-alpha
#: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=FSharp.FIO.PostgreSQL&version=0.0.40-alpha&prerelease
#tool nuget:?package=FSharp.FIO.PostgreSQL&version=0.0.40-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FSharp.FIO.PostgreSQL
PostgreSQL database library for FSharp.FIO, built on Npgsql.
Installation
dotnet add package FSharp.FIO.PostgreSQL
Requires the core FSharp.FIO package.
Features
- Connection Pooling - Configurable connection pool management
- Query Execution - Execute queries with typed result mapping
- Transactions - Atomic operations with automatic commit/rollback
- Parameterized Queries - Safe parameter binding with
@=operator
Quick Example
open FSharp.FIO.DSL
open FSharp.FIO.PostgreSQL
let config = {
ConnectionString = "Host=localhost;Database=mydb;Username=user;Password=pass"
MinPoolSize = 5; MaxPoolSize = 20
ConnectionLifetime = 300; CommandTimeout = 30
}
let pool = Pool.create config
let getUser id = fio {
let sql = "SELECT id, name FROM users WHERE id = @id"
return! Dsl.queryFirstWithParams sql ["id" @= id] userMapper pool
}
Documentation
See the FIO repository for full documentation and examples.
License
MIT License - see LICENSE.md
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- FSharp.Core (>= 10.0.102)
- FSharp.FIO (>= 0.0.40-alpha)
- Npgsql (>= 10.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.0.40-alpha | 46 | 1/22/2026 |