Import CSV Into Table
analytics_import_csvImport a CSV file into a SQLite table with automatic column type inference. Choose to fail, replace, or append existing data.
Instructions
Load a CSV file into a SQLite table (validated via pandas).
This is the only WRITE tool. Column types are inferred by pandas. The destination table name must be a valid SQL identifier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Destination table name (letters, digits, underscores). | |
| csv_path | Yes | Path to a readable .csv file on disk. | |
| if_exists | No | ``fail`` (default — error if the table exists), ``replace`` (drop and recreate) or ``append`` (add rows). | fail |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |