https://github.com/berquerant/sqlite-csv
sql csv pipeline
https://github.com/berquerant/sqlite-csv
bash sqlite
Last synced: 8 months ago
JSON representation
sql csv pipeline
- Host: GitHub
- URL: https://github.com/berquerant/sqlite-csv
- Owner: berquerant
- Created: 2023-10-15T03:19:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-12T13:59:52.000Z (over 2 years ago)
- Last Synced: 2025-03-31T11:31:05.144Z (about 1 year ago)
- Topics: bash, sqlite
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sqlite-csv
```
❯ ./sqlite-csv.sh
NAME
sqlite-csv.sh - sql csv pipeline
SYNOPSIS
sqlite-csv.sh [-h] [-c] [-f] [-i] QUERY [FILE]...
QUERY
query to be executed
FILE
csv file:
import data to sqlite, the table name is the file name without the extension.
if - is specified, csv will also be read from standard input, even if other files are specified
OPTIONS
-c
rename column names to index (from 0)
-f
rename table names to index (from 0)
-h
show this help
-i
-c and -f
ENVIRONMENT VARIABLES
SQLITE_CSV_CMD
sqlite executable, default is sqlite3
SQLITE_CSV_KEEP_DB
if not empty, do not delete sqlite database file
```