Conversation
`stroppy run tpcc` now resolves files through cwd → ~/.stroppy/ → embedded workloads. Three input modes based on argument format: - no extension → preset (tpcc → tpcc.ts + tpcc.sql) - .ts → test script - .sql or inline SQL → wrap with execute_sql preset Script and SQL resolve independently, enabling local overrides. Fixes -- separator parsing bug where k6 args were treated as SQL path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Thank you for the review, I addressed 2 and 3. As for 1 - I think |
Please replace execsql with execute_sql entirely since they are now identical. Also, please consider changing the flow of the inline SQL query case to pass the SQL query directly through an env var like STROPPY_INLINE_SQL, avoiding the creation of an extra SQL file. execute_sql.ts could be updated slightly to conditionally check the env var or file. Alternatively, a separate exec_sql_inline.ts could be introduced. |
Remove duplicate execsql/ preset directory and update references to use execute_sql/ which now serves both file and inline SQL modes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
execsql was removed. Regarding inlining - the temp file will be kept. I like having inline SQL contained. File abstraction goes just fine. |

feel free do dismember this