ToolUp.TimeSeriesStores.Timescale 0.34.1

Prefix Reserved
dotnet add package ToolUp.TimeSeriesStores.Timescale --version 0.34.1
                    
NuGet\Install-Package ToolUp.TimeSeriesStores.Timescale -Version 0.34.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="ToolUp.TimeSeriesStores.Timescale" Version="0.34.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ToolUp.TimeSeriesStores.Timescale" Version="0.34.1" />
                    
Directory.Packages.props
<PackageReference Include="ToolUp.TimeSeriesStores.Timescale" />
                    
Project file
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 ToolUp.TimeSeriesStores.Timescale --version 0.34.1
                    
#r "nuget: ToolUp.TimeSeriesStores.Timescale, 0.34.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 ToolUp.TimeSeriesStores.Timescale@0.34.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=ToolUp.TimeSeriesStores.Timescale&version=0.34.1
                    
Install as a Cake Addin
#tool nuget:?package=ToolUp.TimeSeriesStores.Timescale&version=0.34.1
                    
Install as a Cake Tool

ToolUp.TimeSeriesStores.Timescale

TimescaleDB / PostgreSQL-backed ITimeSeriesStore for ToolUp.Platform (Phase 161). High-frequency numeric/analytical series (IoT readings, operational metrics, financial ticks) persisted over Npgsql, with range queries pushed to the engine and downsampling via Timescale's time_bucket.

GP 1 — the Npgsql dependency is isolated to this companion; it never reaches ToolUp.Platform.*. GP 2 — Npgsql is MIT-licensed (no paid default). Server-only companion.

Schema (provision before use)

The store reads/writes one table — for production make it a Timescale hypertable on ts:

CREATE TABLE toolup_timeseries (
    scope  text             NOT NULL,
    series text             NOT NULL,
    ts     timestamptz      NOT NULL,
    value  double precision NOT NULL);

-- Production: turn it into a hypertable (TimescaleDB extension).
SELECT create_hypertable('toolup_timeseries', 'ts');

CREATE INDEX ON toolup_timeseries (scope, series, ts DESC);

first(value, ts) / last(value, ts) (used for the First / Last aggregations) are TimescaleDB aggregates — install the extension. The other aggregations (Average/Sum/Min/Max/Count) are plain PostgreSQL and work on vanilla Postgres too. The table name is overridable via createWithTable.

Quick start

open Npgsql
open ToolUp.TimeSeriesStores.Timescale

let dataSource = NpgsqlDataSource.Create "Host=...;Database=...;Username=...;Password=..."
let store = TimescaleTimeSeriesStore.create dataSource
// Wire it as the deployment's ITimeSeriesStore:
//   ServerConfig.TimeSeriesStore = CustomTimeSeriesStore
//   services.AddSingleton<ITimeSeriesStore>(store)

time_bucket(bucket, ts, origin => from) aligns buckets to the query's from bound, so this backend's downsample output is byte-identical to the in-memory default's TimeSeriesDownsample.apply — both pass the same ITimeSeriesStoreContract conformance pack.

Verification

The store requires a live PostgreSQL/TimescaleDB (no offline fake). Mirrors the env-gated live-arm convention of the storage / secret companions. The ITimeSeriesStoreContract pack runs against this store in ToolUp.Platform.Tests when TOOLUP_TIMESCALE_CONN is set to a connection string (the test provisions + truncates a scratch toolup_timeseries table); unset, the arm reports skipped, so a fresh checkout is green without a database. The in-memory default runs the same pack always-on.

License

Apache-2.0.

Product 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.

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.34.1 0 10/27/2026
0.34.0 34 10/26/2026
0.33.0 46 10/25/2026
0.32.0 47 10/24/2026
0.31.0 47 10/22/2026
0.30.0 50 10/20/2026
0.29.0 87 10/19/2026
0.28.0 84 10/19/2026
0.27.0 86 10/16/2026
0.26.0 87 10/12/2026
0.25.1 89 10/9/2026
0.24.1 91 10/6/2026
0.23.0 102 9/23/2026
0.22.0 115 8/27/2026
0.21.0 124 8/26/2026
0.20.1 117 8/20/2026
0.20.0 114 8/19/2026