Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timwis/csv-schema
Analyzes a CSV file and generates database table schema, all within the browser
https://github.com/timwis/csv-schema
Last synced: 26 days ago
JSON representation
Analyzes a CSV file and generates database table schema, all within the browser
- Host: GitHub
- URL: https://github.com/timwis/csv-schema
- Owner: timwis
- Created: 2016-04-22T11:08:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-28T09:47:37.000Z (over 8 years ago)
- Last Synced: 2024-11-09T20:10:57.344Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://csv-schema.surge.sh
- Size: 34.2 KB
- Stars: 315
- Watchers: 11
- Forks: 30
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - timwis/csv-schema - Analyzes a CSV file and generates database table schema, all within the browser (JavaScript)
README
# CSV Schema
Analyzes a CSV file and generates database table schema, all within the browser[![screenshot of application](http://i.imgur.com/jfGmGMM.png)](https://csv-schema.surge.sh)
This application parses CSV files (including huge ones)
within the browser. It analyzes each field to suggest the best database field type, max length,
and whether or not there are any `null` values. From there, you can rename fields, ignore them,
override field types/lengths, etc. and generate database table creation sql for MySQL, MariaDB,
Postres, Oracle, or SQLite3.## Development
* Install dependencies using `npm install`
* Run a development server using `npm start`
* Run linter and tests using `npm test`
* Run a production build using `npm run build`
* Deploy the application to [surge](https://surge.sh) using `npm run deploy`This application uses [PapaParse](http://papaparse.com/) for CSV parsing and
[Knex.js](http://knexjs.org/) for SQL query building.