Craticula.Export.Csv
1.3.0
dotnet add package Craticula.Export.Csv --version 1.3.0
NuGet\Install-Package Craticula.Export.Csv -Version 1.3.0
<PackageReference Include="Craticula.Export.Csv" Version="1.3.0" />
<PackageVersion Include="Craticula.Export.Csv" Version="1.3.0" />
<PackageReference Include="Craticula.Export.Csv" />
paket add Craticula.Export.Csv --version 1.3.0
#r "nuget: Craticula.Export.Csv, 1.3.0"
#:package Craticula.Export.Csv@1.3.0
#addin nuget:?package=Craticula.Export.Csv&version=1.3.0
#tool nuget:?package=Craticula.Export.Csv&version=1.3.0
Craticula.Export.Csv
The CSV and TSV writer of Craticula. It streams the rows of a grid export to a Stream, with per-column formats and
protection against spreadsheet formula injection (a text cell that starts with =, +, - or @ is prefixed
with an apostrophe). It knows nothing about the data backend: any row stream from a Craticula execution adapter works.
Install
dotnet add package Craticula.Export.Csv
Example
using Craticula.Core.Export;
using Craticula.Export.Csv;
public static class Example
{
public static Task<long> Write(
IAsyncEnumerable<ExportRow> rows, IReadOnlyList<ExportColumn> columns, Stream destination) =>
CsvWriter.WriteAsync(rows, columns, CsvWriterOptions.Default, destination);
}
rows comes from an adapter such as DapperExportStream.StreamAsync. The task result is the number of rows written.
Compatibility
Implements Craticula spec version 0.3.0 (the language-neutral semantics and conformance fixtures in the
repository, spec/). Targets .NET 10.
License
Apache-2.0. Source and issues: https://github.com/pluries/craticula.
| 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. |
-
net10.0
- Craticula.Core (>= 1.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.