ServantSoftware.Data.Csv 1.0.0.258

dotnet add package ServantSoftware.Data.Csv --version 1.0.0.258
NuGet\Install-Package ServantSoftware.Data.Csv -Version 1.0.0.258
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="ServantSoftware.Data.Csv" Version="1.0.0.258" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ServantSoftware.Data.Csv --version 1.0.0.258
#r "nuget: ServantSoftware.Data.Csv, 1.0.0.258"
#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.
// Install ServantSoftware.Data.Csv as a Cake Addin
#addin nuget:?package=ServantSoftware.Data.Csv&version=1.0.0.258

// Install ServantSoftware.Data.Csv as a Cake Tool
#tool nuget:?package=ServantSoftware.Data.Csv&version=1.0.0.258

CSV ADO.NET Data Provider

Package Name Release (NuGet)
ServantSoftware.Data.Csv NuGet

The CSV ADO.NET Data Provider offers a set of classes that facilitate data access to CSV files using the ADO.NET framework. It provides CRUD (Create, Read, Update, Delete) operations to interact with CSV files as if they were a database. The CSV format (as specified in RFC 4180 has no data typing. As a result, all data stored in the XML files is data typed as a string.

Features

  • ADO.NET compliant provider for CSV files.
  • Support for CRUD operations.
  • Implementation of ADO.NET interfaces for consistency with other data providers.
  • Customizable and extendable to meet specific needs.
  • Comprehensive XML comments to assist with usage.

Getting Started

Prerequisites

  • .NET 7.0 or later.
  • An IDE that supports .NET development, such as Visual Studio.

Installation

You can install the CSV ADO.NET Data Provider from the NuGet package manager or by using the following command in your terminal:

dotnet add package ServantSoftware.Data.Csv

Usage

To use the CSV ADO.NET Data Provider, you'll need to create a CsvConnection instance, then create a CsvCommand instance, and execute it. Here's an example:

using System.Data.CsvClient;

var connectionString = new FileConnectionString() { DataSource = "path/to/your/folder" };
using var connection = new CsvConnection(connectionString);
connection.Open();

var commandText = "SELECT * FROM your_table_name_without_extension";
using var command = new CsvCommand(commandText, connection);
using var reader = command.ExecuteReader();

while (reader.Read())
{
    // Process data
}

connection.Close();

Connection String

The connection string is used mainly to determine the data source for the provider. The data source will always be a path to a folder.

Folder As Database

In this mode, the folder represents the CSV database, and each CSV file in the folder represents a table. The file name then becomes the table's name, minus the .csv extension, and you can expect the data within the file to be rows of comma-separated values.

For example, if there's a file named employees.csv with the following content:

name,email,salary,married
Joe,Joe@gmail.com,56000,true
Bob,bob32@gmail.com,95000,

In the above example, this table would have 4 columns, one for each unique header. The absence of a value, as seen for the "married" property in the second row, would be represented internally as null.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • Thanks to the .NET Foundation for the ADO.NET framework.
  • Special gratitude to those who have provided invaluable feedback and contributions to this project.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ServantSoftware.Data.Csv:

Package Downloads
ServantSoftware.EFCore.Csv

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0.258 145 4/17/2024
1.0.0.257 100 4/17/2024
1.0.0.256 96 4/17/2024
1.0.0.254 86 4/15/2024
1.0.0.253 89 4/15/2024
1.0.0.252 82 4/14/2024
1.0.0.251 82 4/14/2024
1.0.0.250 78 4/13/2024
1.0.0.249 81 4/13/2024
1.0.0.248 84 4/11/2024
1.0.0.247 81 4/11/2024
1.0.0.246 91 4/1/2024
1.0.0.245 92 4/1/2024
1.0.0.242 94 3/27/2024
1.0.0.241 74 3/27/2024
1.0.0.240 93 3/27/2024
1.0.0.239 65 3/27/2024
1.0.0.238 113 3/16/2024
1.0.0.237 78 3/16/2024
1.0.0.236 128 2/14/2024
1.0.0.235 172 12/20/2023
1.0.0.233 194 10/23/2023
1.0.0.232 107 10/23/2023
1.0.0.231 114 10/23/2023
1.0.0.230 114 10/23/2023
1.0.0.229 107 10/23/2023
1.0.0.228 110 10/22/2023
1.0.0.227 111 10/22/2023
1.0.0.226 112 10/22/2023
1.0.0.225 110 10/22/2023
1.0.0.224 117 10/22/2023
1.0.0.223 115 10/22/2023
1.0.0.222 96 10/22/2023
1.0.0.221 129 10/22/2023
1.0.0.220 110 10/21/2023
1.0.0.219 119 10/21/2023
1.0.0.218 109 10/21/2023
1.0.0.217 105 10/21/2023
1.0.0.216 111 10/21/2023
1.0.0.215 96 10/21/2023
1.0.0.214 95 10/21/2023
1.0.0.213 110 10/21/2023
1.0.0.212 111 10/21/2023
1.0.0.211 102 10/20/2023
1.0.0.210 93 10/20/2023
1.0.0.209 107 10/20/2023
1.0.0.208 117 10/20/2023
1.0.0.207 98 10/20/2023
1.0.0.206 126 10/20/2023
1.0.0.205 103 10/20/2023
1.0.0.204 111 10/19/2023
1.0.0.203 103 10/17/2023
1.0.0.202 121 10/10/2023
1.0.0.201 140 10/7/2023
1.0.0.200 121 10/3/2023
1.0.0.199 124 10/2/2023
1.0.0.198 126 10/2/2023
1.0.0.195 114 9/27/2023
1.0.0.194 118 9/27/2023
1.0.0.193 120 9/27/2023
1.0.0.192 124 9/27/2023
1.0.0.191 123 9/26/2023
1.0.0.189 118 9/22/2023
1.0.0.188 112 9/22/2023
1.0.0.187 112 9/22/2023
1.0.0.186 123 9/19/2023
1.0.0.185 113 9/18/2023
1.0.0.184 138 9/17/2023
1.0.0.183 103 9/17/2023
1.0.0.182 115 9/16/2023
1.0.0.181 119 9/15/2023
1.0.0.179 122 9/14/2023
1.0.0.178 127 9/14/2023
1.0.0.176 123 9/13/2023
1.0.0.175 132 9/9/2023
1.0.0.174 128 9/8/2023
1.0.0.173 131 9/1/2023
1.0.0.172 134 9/1/2023
1.0.0.171 129 8/31/2023
1.0.0.170 131 8/25/2023
1.0.0.169 141 8/24/2023