Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upExpose details of result column #374
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 |
|
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
|
|
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_nameand the origins of columns are exposed viaStatement.columns, this is useful for analysing a statement.I've written a connector which uses the
Statement.columnsmethod to automatically replace forgein key references with getters, I would like to bring this to the browser viasql.jsbut 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.