TryGhost / node-sqlite3

SQLite3 bindings for Node.js
BSD 3-Clause "New" or "Revised" License
6.21k stars 815 forks source link

Docs on using node-sqlite3 with electron #1006

Open springmeyer opened 6 years ago

springmeyer commented 6 years ago

@kewde now that #976 has landed, could you PR some docs to the README.md that explain how to install and use node-sqlite3 with electron?

mika76 commented 6 years ago

Is there some notes somewhere on how I can use this with electron? Kinda new to all this...

kewde commented 6 years ago

@mika76 as far as I know, the default electron has no difference with the default NodeJS environment.

Even for electron-builder, all the default settings should allow for a smooth experience.

So essentially, if you follow the NodeJS guide you shouldn't run into any issue. If I am mistaken, then let me know.

ghost commented 6 years ago

@kewde Do you mind posting an example S3 URL of a pre-built module that should be available to download?

My current project config tries to download from https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.2/electron-v2.0-darwin-x64.tar.gz but S3 only returns an Access Denied error.

curl https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.2/electron-v2.0-darwin-x64.tar.gz
# <?xml version="1.0" encoding="UTF-8"?>
# <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>3870605C202B8E5D</RequestId><HostId>XxALIJQJNImqynBHSnfNknTD5+ERFnXXnLzr+AEBqRK2TfWP2Aa1BdGQUi07PYfdenUM9r/0K4Q=</HostId></Error>

Should this configuration be available as a pre-built download?

Thanks in advance!

kewde commented 6 years ago

@nocodaio

Thanks for informing me.

1041

(PS: I have used the linux binaries without a problem on OSX)

ghost commented 6 years ago

👍 Thanks for the quick turn-around @kewde! Much appreciated

kewde commented 6 years ago

@nocodaio There we go, green checks for the osx builds!