3 ms·
can this work with wasm too? that would open interesting doors of doing it in browser.
by pdyc 1y ago
can this work with wasm too? that would open interesting doors of doing it in browser.
- mike_r_parsons 1y agoYou can already do this ... https://sql.js.org/#/?id=api-documentation:~:text=//%20You%20can%20also%20use%20JavaScript%20functions%20inside%20your%20SQL%20code%0A//%20Create%20the%20js%20function%20you%20need%0Afunction%20add(a%2C%20b)%20%7Breturn%20a%2Bb%3B%7D%0A//%20Specifies%20the%20SQL%20function%27s%20name%2C%20the%20number%20of%20it%27s%20arguments%2C%20and%20the%20js%20function%20to%20use%0Adb.create_function(%22add_js%22%2C%20add)%3B https://sql.js.org/#/?id=api-documentation:~:text=//%20You%2...