Skip to content

sqlite import.sh: basename before table name stem#2064

Open
Chessing234 wants to merge 1 commit into
MIT-LCP:mainfrom
Chessing234:fix/sqlite-import-sh-basename
Open

sqlite import.sh: basename before table name stem#2064
Chessing234 wants to merge 1 commit into
MIT-LCP:mainfrom
Chessing234:fix/sqlite-import-sh-basename

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Summary

  • hosp/admissions.csv.gz → table hosp/admissions via ${FILE%%.*}.
  • Use basename so table is admissions.

Test plan

  • Nested */**.csv* loads into names matching create.sql

Made with Cursor

Nested paths like hosp/admissions.csv.gz became table hosp/admissions.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant