Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sqlite-to-csv

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlite-to-csv

A node module to convert sqlite database into csv file

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39
increased by62.5%
Maintainers
1
Weekly downloads
 
Created
Source

#sqlite3-to-csv

- This will export the given sqlite3 database into a set of csv files.
- A separate csv file will be created for the every table.

Installation

You can use npm to download and install:

  • npm install sqlite3-to-csv

#API

toCSV(argsObj, errCallback)

- argsObj :
{
		filePath : <file path of your sqlite3 database which you want to export as csv>,
		outputPath : <file path where your exported csv files will store>
}```

###### - errCallback function: This function will invoke with "error" status as its first parameter incase of error occur while converting sqlite3 db into csv files.

# Usage

const sqliteToCsv = require("sqlite3-to-csv"); var args = { filePath : "mysqlite3.db", outputPath : "filepath/mycsv" };

sqliteToCsv.toCSV(args, (err) => { /* This function will invoke incase of error occurred with error status. Please refer below mentioned error code */ console.log(err); });


# Error handling
| Error code  |  Reason |
| ------------ | ------------ |
|  ERR100 | Input database file not found |
|  ERR101 | Failed to open given database with read only mode |
| ERR102  | filePath params missing in first argument of toCSV() |
| ERR103  | outputPath params missing in first argument of toCSV()  |
| ERR104  | Failed to write to csv file |
| WRN200  | Warning :Output path director not found. Default folder named "csv" is created in current working directory |

Keywords

FAQs

Package last updated on 08 Feb 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc