-
Notifications
You must be signed in to change notification settings - Fork 18
Not working with Deno #439
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
Likely related to denoland/deno#16164. There is a way around it (doing the postinstall manually) in denoland/deno#15611 (comment) |
Thank you @drewbitt! Busy week for me. I'll check this soon. I would love the library to work with Deno, too. I quickly tried publishing on jsr.io (as you found out), but it wasn't a success. |
You can now run simple-data-analysis in Deno using ❯ npm install duckdb simple-data-analysis
npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: This package is no longer supported.
npm WARN deprecated [email protected]: This package is no longer supported.
npm WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated [email protected]: This package is no longer supported.
npm WARN deprecated [email protected]: This package is no longer supported.
npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm WARN deprecated [email protected]: This package is no longer supported.
npm WARN deprecated [email protected]: This package is no longer supported.
added 153 packages in 3s
9 packages are looking for funding
run `npm fund` for details
~/Downloads via v20.12.2 took 2s
❯ DENO_FUTURE=1 deno
Deno 1.44.2
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
> import { SimpleDB } from "npm:simple-data-analysis"; const sdb = new SimpleDB();
undefined
> const employees = sdb.newTable("employees")
undefined
> await employees.logTable()
table employees: no data
undefined |
I just tested the example from the readme and it works well! Do you know what DENO_FUTURE=1 stands for? And I asked about the |
DENO_FUTURE=1 allows it to use node_modules installed by |
Hmmmm. I see. Thank you! Why are you interested in simple-data-analysis, if I may ask? 🤓 |
Seems like a great way of interacting with DuckDB and replace some of our Deno scripts for data analysis and reporting with something more performant with easy to use features. |
Nice! |
Hey @drewbitt, it works now with Deno 2 canary.
Then:
With import { SimpleDB } from "npm:simple-data-analysis"
const sdb = new SimpleDB() |
Yes, I was just thinking of this project when I saw the new allow scripts argument. Great! |
Loosely related to #430 as well
deno run -A filename.ts
Possibly fixed if packaged via jsr and it could resolve duckdb in #431 , but the current implementation in https://jsr.io/@nshiab/simple-data-analysis has the same problem.
Summary
It is looking for
lib/binding/duckdb.node'
but I don't have thatThe text was updated successfully, but these errors were encountered: