sqlx-ts icon indicating copy to clipboard operation
sqlx-ts copied to clipboard

Doesn't work on windows

Open PeytonHanel opened this issue 1 year ago • 1 comments

I tried installing it on windows, and there are several problems.

Running npm install -g sqlx-ts gives an error saying unzip is required, which isn't a powershell command. I used gitbash to install it there, and then the command worked in powershell. But when I tried to run it with sqlx-ts . in my project directory, I got this error

PS C:\Users\peyto\pnw-microgreens\crm-app> sqlx-ts.cmd .
thread 'main' panicked at src/ts_generator/sql_parser/expressions/translate_expr.rs:189:59:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Is there a way that you can rewrite the install program to use windows-specific commands such as Expand-Archive which is the equivalent to unzip? I really want to use this library for my project. Thank you.

PeytonHanel avatar Jul 19 '24 22:07 PeytonHanel

Hi, let me have a think about this. I can potentially just utilise an NPM module for unzipping, which should provide cross platform compatibility

JasonShin avatar Jul 20 '24 05:07 JasonShin

It should've been fixed the recent update from @AnantSutar

JasonShin avatar Mar 22 '25 00:03 JasonShin