Giter Site home page Giter Site logo

coderhs / csvsqlweb Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 57 KB

Manipulate CSV using SQL online

Home Page: https://hsps.in/csvsqlweb/

License: MIT License

JavaScript 20.69% HTML 79.31%
csv database javascript offline sqlite sqlite3 web-assembly

csvsqlweb's Introduction

CSVSQLWEB *

Demo

A web based application that allows you to manipulate a CSV file using SQL. The app import the csv file into an in memory sqlite3 database, thus no data (100% privacy) is ever shared with the web server. The data in database can be manipulated using SQL, and then the result of the SQL can be downloaded as a CSV file.

This project doesn't use any special framework at the moment but we are building using 2 major libraries.

  1. Papaparse Papa parse, lightweight library that parses and generates CSV files.
  2. sql.js SQLite compiled to JavaScript

Things to do

  1. Proper/better name for the project
  2. Move both Papa parse/SQL to service worker, to reduce load on the browser main thread.
  3. Validate SQL query as valid before executing
  4. Detect data type and use that when we create the table

Run Locally

npm install
http-server .

csvsqlweb's People

Contributors

coderhs avatar irgeek avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

irgeek

csvsqlweb's Issues

Detect SQLite keywords in column names

When the CSV file has column names that are keywords in SQLite the CSV silently fails to load.

In my case, the CSV had a column named index. When I changed it to idx the file loaded correctly. Perhaps you could add a tail to column names that are keywords so, for instance, a column name of index would be imported as index_. That would avoid the collision and stop the error that blocks loading the data. If you need test data, I was using the organizations-10000.csv file from here.

No license

There's no license in this repo. If you intend it to be open source, please add a license. If it's not intended to be open source, you should probably state that in the README.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.