Noiz.DataManagement.PostgresDataAdapter 1.0.3

There is a newer version of this package available.
See the version list below for details.
Install-Package Noiz.DataManagement.PostgresDataAdapter -Version 1.0.3
dotnet add package Noiz.DataManagement.PostgresDataAdapter --version 1.0.3
<PackageReference Include="Noiz.DataManagement.PostgresDataAdapter" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Noiz.DataManagement.PostgresDataAdapter --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Noiz.DataManagement.PostgresDataAdapter, 1.0.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Noiz.DataManagement.PostgresDataAdapter as a Cake Addin
#addin nuget:?package=Noiz.DataManagement.PostgresDataAdapter&version=1.0.3

// Install Noiz.DataManagement.PostgresDataAdapter as a Cake Tool
#tool nuget:?package=Noiz.DataManagement.PostgresDataAdapter&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Noiz.DataManagement.PostgresDataAdapter

For postgresSql bulk data ingestion, this builds on https://github.com/PostgreSQLCopyHelper/PostgreSQLCopyHelper it automates the process of building a copy helper and also if need be creating a table.

To run the acceptance tests please complete the connection string at the top of the file.

Usage is as follows, see below

public ulong Save(IEnumerable<TestDataObject> entities)
{
  using var connection = new NpgsqlConnection(DbConnectionString);

  connection.Open();
  var createTableSql = PostgresBulkCopyUtility.CreatePostgresTable<TestDataObject>(Tablename);

  connection.ExecuteScalar(createTableSql);

  var mapping = PostgresBulkCopyUtility.GetPostgreSQLCopyHelper<TestDataObject>(Tablename);

  return mapping.SaveAll(connection, entities);
}

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
1.0.5 223 11/27/2020
1.0.4 203 11/23/2020
1.0.3 188 11/12/2020
1.0.2 157 11/11/2020
1.0.1 161 11/11/2020
1.0.0 151 11/11/2020