CSharpDB.ImportExport
4.0.1
Prefix Reserved
See the version list below for details.
dotnet add package CSharpDB.ImportExport --version 4.0.1
NuGet\Install-Package CSharpDB.ImportExport -Version 4.0.1
<PackageReference Include="CSharpDB.ImportExport" Version="4.0.1" />
<PackageVersion Include="CSharpDB.ImportExport" Version="4.0.1" />
<PackageReference Include="CSharpDB.ImportExport" />
paket add CSharpDB.ImportExport --version 4.0.1
#r "nuget: CSharpDB.ImportExport, 4.0.1"
#:package CSharpDB.ImportExport@4.0.1
#addin nuget:?package=CSharpDB.ImportExport&version=4.0.1
#tool nuget:?package=CSharpDB.ImportExport&version=4.0.1
CSharpDB.ImportExport
Native table archive import/export support for CSharpDB.
CSharpDB.ImportExport provides the shared table archive format used by the
execution engine, client API, admin import/export tools, and DevOps comparison
features. It is a low-level package for tools that need to read or write
CSharpDB table archives directly.
Features
- native CSharpDB table archive reader and writer
- schema and manifest metadata models
- row streaming through
IAsyncEnumerable<DbValue[]> - primary-key index metadata and indexed integer primary-key lookup
- conversion between archive schema models and
CSharpDB.Primitives.TableSchema
Reading Archives
using CSharpDB.ImportExport.TableArchives;
var metadata = await TableArchiveReader.ReadMetadataAsync("customers.cdbtable");
Console.WriteLine($"{metadata.Manifest.SourceTableName}: {metadata.Manifest.RowCount} rows");
await foreach (var row in TableArchiveReader.ReadRowsAsync("customers.cdbtable"))
{
Console.WriteLine(row[0]);
}
Writing Archives
using CSharpDB.ImportExport.TableArchives;
using CSharpDB.Primitives;
TableSchema schema = new()
{
TableName = "customers",
Columns =
[
new ColumnDefinition { Name = "id", Type = DbType.Integer, IsPrimaryKey = true },
new ColumnDefinition { Name = "name", Type = DbType.Text },
],
};
DbValue[][] rows =
[
[DbValue.Integer(1), DbValue.Text("Ada")],
[DbValue.Integer(2), DbValue.Text("Grace")],
];
await TableArchiveWriter.WriteAsync(
"customers.cdbtable",
schema,
TableArchiveWriter.ToAsyncRows(rows));
Dependencies
CSharpDB.Primitives- shared type system and schema contractsCSharpDB.Storage- record serialization used by native table archives
Related Packages
| Package | Description |
|---|---|
| CSharpDB.Execution | Query planner and operators that consume archive readers for external tables |
| CSharpDB.Client | Public client API that exposes table archive import/export workflows |
| CSharpDB | Recommended all-in-one package |
License
MIT - see LICENSE for details.
| 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
- CSharpDB.Primitives (>= 4.0.1)
- CSharpDB.Storage (>= 4.0.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on CSharpDB.ImportExport:
| Package | Downloads |
|---|---|
|
CSharpDB.Execution
Query planner, operator tree, and expression evaluator for the CSharpDB embedded database. |
|
|
CSharpDB.Client
Unified CSharpDB client SDK with pluggable transports (Direct, HTTP, gRPC, TCP, Named Pipes). |
GitHub repositories
This package is not used by any popular GitHub repositories.