jvail / spl.js

SpatiaLite for browser & node
GNU General Public License v3.0
166 stars 17 forks source link

Usage with Node/Server-side JS & Edge? #19

Closed patryk-smc closed 12 months ago

patryk-smc commented 1 year ago

Hi there, I am currently researching the possibility of implementing API with Geospatial search capabilities on the Edge, using Cloudflare Workers, Fly.io, or similar. I came across this promising project, but I am having difficulty understanding it after reading the README.

I wanted to ask how this is supposed to be used with Node / or other server-side JS runtimes? Would it be possible to hook it up with Edge SQLite database provider such as Turso, Cloudflare D1 , or Fly.io SQLite or LiteFS? I would really appreciate some clarification.

Thanks a lot

jvail commented 1 year ago

Hi over there,

, but I am having difficulty understanding it after reading the README.

Maybe I need to update the readme if it is so unclear :) Sorry, did you take a look at the code in the test folder? Maybe that helps?

Bye, Jan

patryk-smc commented 1 year ago

Thank you for your response, Jan. I did check the node tests, but they were a bit difficult to understand. While I am not a beginner in Node, my experience withed, as I only used it for basic tasks in the past. It would be great if you could provide more information in the README to help clarify things. Thank you.

jvail commented 1 year ago

It would be great if you could provide more information in the README to help clarify things. Thank you.

Frankly, I am not sure what to add. Your "Question" is a bit too vague. Have you considered looking at a combination of node + native SQLite and support for loading extensions (SpatiaLite is "just" an extension of SQLite)?