Socket
Socket
Sign inDemoInstall

sqlite-electron

Package Overview
Dependencies
37
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sqlite-electron

A module for electron to use sqlite3 without rebuilding


Version published
Weekly downloads
55
decreased by-32.1%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Sqlite Electron

Sqlite Electron is a module only for electron to use sqlite3 database without rebuilding

Installation

Use the package manager npmjs to install Sqlite Electron.

npm install sqlite-electron

Usage

const sqlite = require('sqlite-electron');

sqlite.init()
.then((result) => {console.log(result)})
.catch((err) => {console.log(err)});

Functions

FunctionsDescription
init()Connect and start the server
Connect(dataBasename = '', additionalPath = '')It connects to the Database by providing the database name and optional path if you want
executeQuery(Query = '', fetch = '', values = [])It Executes single query with fetch and values the fetch must be in string eg:- 'all', '1','2'... '' values must be array
executeMany(Query = '', values = [])It executes single query with multiple values
executeScript(scriptName = '')It execute the sql script scriptName must be name of the script
Close()It closes the connection with database

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Github

License

GPL v3.0

Keywords

FAQs

Last updated on 11 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc