Zongsoft.Data.Influx
0.10.0
dotnet add package Zongsoft.Data.Influx --version 0.10.0
NuGet\Install-Package Zongsoft.Data.Influx -Version 0.10.0
<PackageReference Include="Zongsoft.Data.Influx" Version="0.10.0" />
<PackageVersion Include="Zongsoft.Data.Influx" Version="0.10.0" />
<PackageReference Include="Zongsoft.Data.Influx" />
paket add Zongsoft.Data.Influx --version 0.10.0
#r "nuget: Zongsoft.Data.Influx, 0.10.0"
#:package Zongsoft.Data.Influx@0.10.0
#addin nuget:?package=Zongsoft.Data.Influx&version=0.10.0
#tool nuget:?package=Zongsoft.Data.Influx&version=0.10.0
Zongsoft.Data.Influx Data Driver Plugin Library
Overview
Zongsoft.Data.Influx is a low-level data engine driver in the Zongsoft open-source framework. It provides access to InfluxDB and is transparent to upper-layer applications; deploy this plugin library to the application plugin directory to enable it.
When to Use This Driver
Choose this package when a Zongsoft data model is stored in InfluxDB 3. The public application contract remains IDataAccess/IDataService<T>; this package translates expressions and mutations into the database dialect and creates connections through InfluxDB3.Client.
InfluxDB is a time-series system. Measurements, tags, fields, timestamps, buckets/databases, and its query language do not behave like relational tables; model and test those semantics explicitly.
Installation and Plugin Deployment
dotnet add package Zongsoft.Data.Influx
Deploy Zongsoft.Data.Influx.plugin with the assembly. Its manifest registers the connection-settings parser and data driver under the framework workbench. A NuGet reference without the plugin manifest does not activate the driver in a plugin host.
Connection Configuration
<options>
<option path="/Data">
<connectionSettings default="Application">
<connectionSetting connectionSetting.name="Application"
driver="Influx"
value="Server=http://127.0.0.1:8181;Database=docs;Token=REPLACE_WITH_TEST_TOKEN;Precision=ms" />
</connectionSettings>
</option>
</options>
The driver value is case-insensitive but should use the canonical Influx spelling. The value is parsed by this package's connection settings driver and ultimately passed to InfluxDB3.Client; consult the provider documentation for supported keywords.
💡 Keep entity mappings, criteria, paging, transactions, and
IDataAccessusage in the shared Zongsoft.Data guide. Switching drivers should not require application services to depend on provider connection classes.
The connection string uses this driver's public settings model, which does not necessarily expose every underlying SDK keyword. Examples target local test environments only. Prepare databases, accounts and permissions, and replace explicitly marked test credentials; this is not a server initialization script.
Access Through Application Contracts
The consumer module references Core; the host deploys Data and this driver. After startup, obtain the accessor matching the configured connection name:
using Zongsoft.Data;
using Zongsoft.Services;
var provider = ApplicationContext.Current.Services
.ResolveRequired<Zongsoft.Services.IServiceProvider<IDataAccess>>();
var data = provider.GetService("Application")
?? throw new InvalidOperationException("Data accessor not found.");
Console.WriteLine(data.Name);
Obtaining an accessor does not prove query execution succeeded. Follow the real Discussions composition in the Data guide through its module, mapping and services. That walkthrough does not establish Discussions compatibility with this driver: verify database structures, field types and required operations, rather than assuming a driver-name change makes the application portable. Business services use shared contracts instead of constructing database connections.
Runtime Behavior
The driver supplies a provider-specific statement builder/visitor, command parameterization, execution primitives, and an importer. The data engine selects it from the named connection setting. Ambient data transactions are honored where the provider and operation support them.
🚨 Never commit production connection strings. Use deployment-time configuration or a secret provider, grant the database identity only the required permissions, and verify destructive mutations against a disposable database first.
Compatibility and Testing
Database behavior is not completely portable. Verify identifier casing, null and comparison rules, date/time precision, generated values, transaction semantics, and bulk-import constraints on the same server/provider versions used in production. Repository tests require an explicitly configured disposable database and are not ordinary offline unit tests.
Related Resources
- Zongsoft.Data user guide
- Driver implementation rules
- Data engine implementation skill
- InfluxDB 3 provider documentation
Plugin-Based Integration
Compose this feature through the host; a package reference supplies compile-time APIs, while plugin loading also requires deployed manifests and runtime assets. See the complete plugin workflow.
The manifest adds the driver to /Workbench/Data/Drivers and the connection-settings registry. Configure the exact driver key shown above, deploy the application's mapping, then obtain IDataAccess from the host. Database creation/migration remains an explicit application operation.
| Runtime artifact | Source of truth |
|---|---|
Zongsoft.Data.Influx |
Zongsoft.Data.Influx.plugin |
| File copying and dependencies | Zongsoft.Data.Influx.deploy |
Add this fragment to an existing host .deploy (retain Main and the host’s other base manifests; do not replace the whole file):
[plugins zongsoft data]
nuget:Zongsoft.Data
[plugins zongsoft data influx]
nuget:Zongsoft.Data.Influx
Run dotnet deploy against a test deployment as explained in the workflow, with the host's framework, platform, architecture and, where needed, site. Pin compatible versions in real deployments; application dependencies such as databases, caches or commercial runtimes are still separate prerequisites.
Additional artifacts listed by the deployment manifest include Zongsoft.Data.Influx.plugin. Retain assemblies, dependencies and satellite resource directories as well. Restart the host after deployment, check plugin loading and service/driver registration, then verify the workflow above; copied files alone do not prove that the feature is active.
| 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 is compatible. 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
- InfluxDB3.Client (>= 1.0.0)
- Zongsoft.Core (>= 7.59.0)
- Zongsoft.Data (>= 7.29.0)
-
net8.0
- InfluxDB3.Client (>= 1.0.0)
- Zongsoft.Core (>= 7.59.0)
- Zongsoft.Data (>= 7.29.0)
-
net9.0
- InfluxDB3.Client (>= 1.0.0)
- Zongsoft.Core (>= 7.59.0)
- Zongsoft.Data (>= 7.29.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.