Skip to content

giloutho/test-better-sqlite3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-better-sqlite3

The goal of this project is to verify the good integration of sqlite-better3 in an Electron application initiated with Electron Forge. This project must run on different operating systems: MacOS intel, MacOS M1, Windows and Linux. The use of node-gyp does not always make things obvious.

Built With

Installation and usage

Clone the repo

git clone https://github.com/giloutho/test-better-sqlite3

Windows

It is not sure that a simple "npm intall" runs without errors. On the repository of better-sqlite3, here is a troubleshooting guide. After many hours, here is what seems essential :

  • install the latest of node
  • install latest Visual Studio Community and Desktop Development with C++ extension. Success with 2019 version
  • run npm install as administrator

Linux

Tested on Ubuntu. This works directly without problems. "npm intall" and "npm start".

Mac Intel

Tested on MacOS 10.15 (Catalina). This works directly without problems. "npm intall" and "npm start".

Mac Arm

Tested on MacOS 12.2 (Monterey). This works directly without problems. "npm intall" and "npm start".

Versions

These tests were performed with :

  • Electron 17
  • Electron-forge 6
  • better-sqlite3 7.5

Results

This test create a database called sample.db with sql text files.

Some requests are made : Select, Select count, Insert and Delete.

Request results are displayed in the console

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published