Skip to content

custom

Optional, customized commands for special use cases. They do not follow the standard datastore design and need the custom extra: pip install "cosmotech-acceleration-library[custom]".

Command Use it to
load-csv-file Load one CSV file into an existing PostgreSQL table
load-csv-folder Load every CSV file of a folder, one PostgreSQL table per file

See Custom Commands for when to use them and an example.

Help command

> csm-data custom --help

 Usage: csm-data custom [OPTIONS] COMMAND [ARGS]...                             

 CoAL custom command group                                                      
 This group contains optional, customized commands for special use cases. They  
 do not follow the standard datastore design and may require extra              
 dependencies: pip install "cosmotech-acceleration-library[custom]"             

╭─ OPTIONS ────────────────────────────────────────────────────────────────────╮
│ --web-help      Open the web documentation                                   │
│ --help          Show this message and exit.                                  │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ load-csv-file    Stream one CSV file into an existing PostgreSQL table with  │
│                  COPY FROM STDIN                                             │
│ load-csv-folder  Stream every CSV file of a folder into its own existing     │
│                  PostgreSQL table with COPY FROM STDIN                       │
╰──────────────────────────────────────────────────────────────────────────────╯