TicketFlow.Surveys.Stores.Postgres
0.1.0-alpha.4.1
This is a prerelease version of TicketFlow.Surveys.Stores.Postgres.
dotnet add package TicketFlow.Surveys.Stores.Postgres --version 0.1.0-alpha.4.1
NuGet\Install-Package TicketFlow.Surveys.Stores.Postgres -Version 0.1.0-alpha.4.1
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="TicketFlow.Surveys.Stores.Postgres" Version="0.1.0-alpha.4.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TicketFlow.Surveys.Stores.Postgres" Version="0.1.0-alpha.4.1" />
<PackageReference Include="TicketFlow.Surveys.Stores.Postgres" />
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 TicketFlow.Surveys.Stores.Postgres --version 0.1.0-alpha.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TicketFlow.Surveys.Stores.Postgres, 0.1.0-alpha.4.1"
#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 TicketFlow.Surveys.Stores.Postgres@0.1.0-alpha.4.1
#: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=TicketFlow.Surveys.Stores.Postgres&version=0.1.0-alpha.4.1&prerelease
#tool nuget:?package=TicketFlow.Surveys.Stores.Postgres&version=0.1.0-alpha.4.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TicketFlow.Surveys.Stores.Postgres
Durable PostgreSQL storage for TicketFlow surveys. PostgresSurveyStore implements ISurveyStore over an application-owned
NpgsqlDataSource.
- Explicit schema initialization:
await store.InitializeAsync()applies the append-only, checksummedPostgresSurveyMigrations.Catalog(componentticketflow.surveys) in the data source's current schema. - Every key includes the full workspace scope via fixed-size
tf_key_v1keys; raw columns are compared too. - Invitations: unique per (survey, conversation); creates for one (survey, contact) serialize on a transaction-scoped advisory lock so the cooldown cannot be raced; only the 32-byte SHA-256 token hash is stored (unique index); a partial index serves due reads.
- Dispatch claims:
ClaimDueInvitationsAsyncis oneUPDATE … WHERE invitation_key IN (SELECT … FOR UPDATE SKIP LOCKED LIMIT n)that moves due invitations (pending, or sending with an expired lease) to Sending with a lease, so concurrent dispatchers on separate data sources never claim the same invitation. Schema version 2 (dispatch-leases) adds the lease and upgrades version 1 in place. - Responses: one per invitation (primary key), written in the same transaction that moves the invitation to Responded.
- Response lists (keyset on responded-at, invitation) and aggregates (UTC
date_truncbuckets, grouping by inbox/team/agent,count(*) FILTERsentiment counts, ≤ 1000 rows) translate theAccessFilterwithPostgresAccessFilterTranslatorover the response's inbox, team and agent (as assignee); labels and attributes are unknown, and untranslatable filters return no rows.
using TicketFlow.Surveys.Stores.Postgres;
await using var dataSource = NpgsqlDataSource.Create(connectionString);
services.AddTicketFlow().AddAccessControl().AddPostgresAccessStores(dataSource)
.AddSurveys().AddPostgresSurveyStores(dataSource);
await new PostgresSurveyStore(dataSource).InitializeAsync();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- Npgsql (>= 10.0.3)
- TicketFlow.Access.Stores.Postgres (>= 0.1.0-alpha.4.1)
- TicketFlow.Stores.Migrations.Postgres (>= 0.1.0-alpha.4.1)
- TicketFlow.Surveys.Abstractions (>= 0.1.0-alpha.4.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TicketFlow.Surveys.Stores.Postgres:
| Package | Downloads |
|---|---|
|
TicketFlow
Catch-all meta-package for the TicketFlow stack: core primitives, support domains, in-memory and PostgreSQL stores, ASP.NET Core hosting, SignalR realtime, background workers, Blazor management UI, and MCP server toolsets. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.4.1 | 44 | 11/23/2026 |
| 0.1.0-alpha.3.1 | 40 | 11/23/2026 |
| 0.1.0-alpha.2.1 | 44 | 11/22/2026 |