Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markpflug/sylvan.tools.etl
Extract transform load command line tools.
https://github.com/markpflug/sylvan.tools.etl
csv data etl sqlite sqlserver
Last synced: 4 days ago
JSON representation
Extract transform load command line tools.
- Host: GitHub
- URL: https://github.com/markpflug/sylvan.tools.etl
- Owner: MarkPflug
- License: mit
- Created: 2021-02-20T18:24:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-20T18:52:53.000Z (about 2 months ago)
- Last Synced: 2024-10-04T00:15:00.169Z (about 1 month ago)
- Topics: csv, data, etl, sqlite, sqlserver
- Language: C#
- Homepage:
- Size: 97.7 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# Sylvan.Tools.Etl
Sylvan.Tools.Etl is a .NET global tool to help with common ETL (extract transform load) operations.
## Installation
Requires [.NET SDK](https://dotnet.microsoft.com/download). Installs as a .NET global tool.
```
dotnet tool install -g Sylvan.Tools.Etl
```### Analyze
Analyzes a CSV file and creates a .schema file describing the data.
`setl analyze data.csv`
Creates a file named data.csv.schema.
### Import
Imports a CSV file into a database. Currently supports either SqlServer or Sqlite.
`setl import SqlServer MyDb data.csv ImportedData`
Will analyze the CSV contents to determine schema, or use a .schema file if one exists.
### Export
Exports a database query to a CSV file.
`setl export SqlServer MyDb "select * from ImportedData where " data.csv`
Will export the results of the query to a file named data.csv and create an accompanying .schema file.
### Select
Selects columns from a CSV file.
`setl select data.csv dump.csv 0 1 2 12`