ServantSoftware.Data.Csv 1.0.0.259

dotnet add package ServantSoftware.Data.Csv --version 1.0.0.259
NuGet\Install-Package ServantSoftware.Data.Csv -Version 1.0.0.259
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.259" />
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.259
#r "nuget: ServantSoftware.Data.Csv, 1.0.0.259"
#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.259

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

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.259 100 6/8/2024
1.0.0.258 156 4/17/2024
1.0.0.257 102 4/17/2024
1.0.0.256 97 4/17/2024
1.0.0.254 88 4/15/2024
1.0.0.253 91 4/15/2024
1.0.0.252 83 4/14/2024
1.0.0.251 84 4/14/2024
1.0.0.250 79 4/13/2024
1.0.0.249 82 4/13/2024
1.0.0.248 87 4/11/2024
1.0.0.247 83 4/11/2024
1.0.0.246 92 4/1/2024
1.0.0.245 93 4/1/2024
1.0.0.242 95 3/27/2024
1.0.0.241 77 3/27/2024
1.0.0.240 94 3/27/2024
1.0.0.239 66 3/27/2024
1.0.0.238 114 3/16/2024
1.0.0.237 79 3/16/2024
1.0.0.236 129 2/14/2024
1.0.0.235 173 12/20/2023
1.0.0.233 196 10/23/2023
1.0.0.232 108 10/23/2023
1.0.0.231 115 10/23/2023
1.0.0.230 115 10/23/2023
1.0.0.229 108 10/23/2023
1.0.0.228 111 10/22/2023
1.0.0.227 112 10/22/2023
1.0.0.226 113 10/22/2023
1.0.0.225 111 10/22/2023
1.0.0.224 118 10/22/2023
1.0.0.223 116 10/22/2023
1.0.0.222 97 10/22/2023
1.0.0.221 131 10/22/2023
1.0.0.220 111 10/21/2023
1.0.0.219 120 10/21/2023
1.0.0.218 110 10/21/2023
1.0.0.217 106 10/21/2023
1.0.0.216 112 10/21/2023
1.0.0.215 97 10/21/2023
1.0.0.214 96 10/21/2023
1.0.0.213 111 10/21/2023
1.0.0.212 112 10/21/2023
1.0.0.211 103 10/20/2023
1.0.0.210 94 10/20/2023
1.0.0.209 108 10/20/2023
1.0.0.208 118 10/20/2023
1.0.0.207 99 10/20/2023
1.0.0.206 127 10/20/2023
1.0.0.205 104 10/20/2023
1.0.0.204 112 10/19/2023
1.0.0.203 104 10/17/2023
1.0.0.202 122 10/10/2023
1.0.0.201 142 10/7/2023
1.0.0.200 122 10/3/2023
1.0.0.199 125 10/2/2023
1.0.0.198 127 10/2/2023
1.0.0.195 115 9/27/2023
1.0.0.194 119 9/27/2023
1.0.0.193 121 9/27/2023
1.0.0.192 125 9/27/2023
1.0.0.191 124 9/26/2023
1.0.0.189 119 9/22/2023
1.0.0.188 113 9/22/2023
1.0.0.187 113 9/22/2023
1.0.0.186 124 9/19/2023
1.0.0.185 114 9/18/2023
1.0.0.184 139 9/17/2023
1.0.0.183 104 9/17/2023
1.0.0.182 116 9/16/2023
1.0.0.181 120 9/15/2023
1.0.0.179 123 9/14/2023
1.0.0.178 128 9/14/2023
1.0.0.176 124 9/13/2023
1.0.0.175 133 9/9/2023
1.0.0.174 129 9/8/2023
1.0.0.173 132 9/1/2023
1.0.0.172 135 9/1/2023
1.0.0.171 130 8/31/2023
1.0.0.170 132 8/25/2023
1.0.0.169 143 8/24/2023