Overview of filesql
mainfilesql is a Go library that loads various file formats into an in-memory SQLite database, allowing you to query them using standard SQL syntax. It is designed for scenarios where data is already in files and SQL is the most efficient way to process it.
Core Capabilities:
- Join across formats: Join data from CSV, TSV, LTSV, JSON, JSONL, Parquet, XLSX, ACH, or Fedwire.
- Flexible Input: Read from file paths, directories,
io.Reader, orembed.FS. - Transparent Compression: Automatically handles
.gz,.bz2,.xz,.zst,.z,.snappy,.s2, and.lz4wrappers for supported text and columnar formats. - Companion Packages:
prep: For cleaning and validating rows before they are loaded as tables.frame: For performing in-memory transformations on small/medium datasets using plain Go instead of SQL.