tursodatabase/turso-cli

Better error handling in csv table name

オープン

#810 opened on 2024/03/08

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Go (50 件のフォーク)github user discovery
buggood first issue

Repository metrics

Stars
 (302 個のスター)
PR merge metrics
 (平均マージ 4h 32m) (30d で 2 merged PRs)

説明

You can create a new db from CSV:

turso db create --from-csv test12_sanitized.csv --csv-table-name some_table
  1. If someone sends an invalid character for csv-table-name param, it just prints an error as something went wrong:
Error: could not load csv into new database file: exit status 1: 4572726f723a206e65617220222d223a2073796e746178206572726f720a

We should display the proper error

  1. We update our CLI to not to accept any special characters in csv-table-name param

reported here: https://discord.com/channels/933071162680958986/1215308443217563668/1215308443217563668

コントリビューターガイド