CSharpDB.ImportExport 4.0.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package CSharpDB.ImportExport --version 4.0.0
                    
NuGet\Install-Package CSharpDB.ImportExport -Version 4.0.0
                    
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="CSharpDB.ImportExport" Version="4.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSharpDB.ImportExport" Version="4.0.0" />
                    
Directory.Packages.props
<PackageReference Include="CSharpDB.ImportExport" />
                    
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 CSharpDB.ImportExport --version 4.0.0
                    
#r "nuget: CSharpDB.ImportExport, 4.0.0"
                    
#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 CSharpDB.ImportExport@4.0.0
                    
#: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=CSharpDB.ImportExport&version=4.0.0
                    
Install as a Cake Addin
#tool nuget:?package=CSharpDB.ImportExport&version=4.0.0
                    
Install as a Cake Tool

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 contracts
  • CSharpDB.Storage - record serialization used by native table archives
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 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 (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.

Version Downloads Last Updated
4.0.2 0 7/9/2026
4.0.1 111 7/5/2026
4.0.0 171 6/25/2026
3.9.1 189 6/11/2026