tursodatabase/turso-cli

Better error handling in csv table name

開放

#810 建立於 2024年3月8日

 (2 則留言) (0 個反應) (0 位負責人)Go (50 個分叉)github user discovery
buggood first issue

倉庫指標

星標
 (302 顆星)
PR 合併指標
 (平均合併 4小時 32分鐘) (30 天內合併 2 個 PR)

描述

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

貢獻者指南