-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expose details of result column #374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello, |
Thank you! When I get some time I will start playing around with it. |
Hello, really sorry but I'm stuck at the first hurdle.
I know this isn't a make support line but lots of the contributers to this project must have had Many thanks. |
Hello @charlielidbury ! I don't know very much about windows, but I guess the easiest fix is to just not use it for this kind of work 😄 If you don't want to install linux, you can try WSL. It should come with all the tools you need. |
Lol I was hoping you wouldn’t say that, used to dual boot for PHP work but stopped using PHP ages ago. If WSL doesn’t work straight away I guess I’m dual booting!
… On 7 Jun 2020, at 10:29, Ophir LOJKINE ***@***.***> wrote:
Hello @charlielidbury ! I don't know very much about windows, but I guess the easiest fix is to just not use it for this kind of work 😄 If you don't want to install linux, you can try WSL. It should come with all the tools you need.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I personally don't use windows, but I've heard a lot of good things about WSL2. Hope you can make it work :) |
I'm a windows user, who runs linux stuff under debian docker. don't know about wsl2, but was not impressed with wsl1 -- things would randomly crash under it. i don't actually compile sqj.js or bother with emscripten tooling locally. just let github-ci do the heavy-lifting (takes 5 minutes) and then download it's artifacts. |
I wouldn't recommend this workflow. The CI has to reinstall emscripten every time you launch it, and as you noticed, it takes several minutes. Setting up emscripten locally is a little bit painful, but it's a one-time job, which then lets you test your changes and iterate on them rapidly. |
Hello, been sitting on this issue for a day now with no success. When I add If I add
Which makes it look like column_origin_name should have been exported somewhere but it doesn't. I had a look in |
In connectors like better-sqlite3:
sqlite3_column_name
and the origins of columns are exposed viaStatement.columns
, this is useful for analysing a statement.I've written a connector which uses the
Statement.columns
method to automatically replace forgein key references with getters, I would like to bring this to the browser viasql.js
but that information isn't exposed in this API, or in any other wasm API.Would you be interested in adding a method similar to better-sqlite3's prepared statements? It's quite a niche thing but most server-side connectors impliment it, so people must be using it.
I have looked a little bit at sql.js' source code and I think I'll be able to impliment it myself and make a pull request, but I've never worked on C and JS in tandem so it would be a learning curve, I just haven't gone on that curve yet in case you think it's a dumb idea and you'll never merge it.
Thanks for your time.
The text was updated successfully, but these errors were encountered: