Guide - Data Access with F#

F# supports all common data import and access techniques. In addition, the type provider feature of
F# brings simplicity and flexibility to accessing data, including databases, web-scale data and structured
text formats like JSON, and XML.

If the data access libraries you need are not listed here, you can search for them on nuget.

Resources for Data Access

This guide includes resources related to data access with F#. To contribute to this guide, log on to GitHub, edit this page and send a pull request.

The resources listed below are provided only for educational purposes related to the F# programming language. The F# Software Foundation does not endorse or recommend any commercial products, processes, or services. Therefore, mention of commercial products, processes, or services should not be construed as an endorsement or recommendation.

CSV, HTML, JSON and XML data

FSharp.Data - The F# Data library (FSharp.Data.dll) implements functionality to access data in your F# applications and scripts. It implements F# type providers for working with structured file formats (CSV, HTML, JSON and XML) and for accessing the WorldBank and Freebase services. It also includes helpers for parsing CSV, HTML and JSON files and for sending HTTP requests.

Json.NET provides full support for serialization of F# types to and from JSON.

ADO.NET - A set of .NET classes exposing data access services to the .NET programmer. Works with a very broad range of databases.

Rezoom.SQL - A library that statically typechecks a common SQL dialect and translates it to various RDBMS backends.

Web Data Stores

F# allows for the direct integration of scalable data stores into F# programming. For example, a type provider for the World bank data sets is available in the FSharp.Data library. Other
web data stores can be accessed through F# support for JSON, XML and CSV data formats.

Data Frame and Time Series Programming

See the Data Science guide for more information on data frame and time series programming with F#.