Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Projects/.DS_Store
Binary file not shown.
Binary file added Projects/SQLify/.DS_Store
Binary file not shown.
21 changes: 21 additions & 0 deletions Projects/SQLify/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 Vincenzo Ragone

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
145 changes: 145 additions & 0 deletions Projects/SQLify/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# SQLify

A lightweight web application that transforms CSV and Excel files into SQL code automatically. Upload your data files and generate ready-to-use CREATE TABLE and INSERT INTO statements.

## Features

- **Multi-format Support**: Upload CSV and Excel files
- **Table Customization**: Rename your database table before generating SQL
- **Column Selection**: Choose which columns to include or exclude from the output
- **Complete SQL Generation**:
- CREATE TABLE statements with proper column definitions
- INSERT INTO statements for all data rows
- **Modern Interface**: Clean, centered, and responsive design
- **Copy & Download**: Easy copy-to-clipboard or download SQL files
- **Data Validation**: Handles empty cells, trims whitespace, and removes empty rows
- **Real-time Preview**: See your SQL output update as you make changes


## Installation & Setup

### Prerequisites

- Node.js (version 14 or higher)
- npm or yarn package manager

### Steps

1. **Clone the repository**
```bash
git clone https://github.com/vincenzo113/sqlify.git
cd sqlify
```

2. **Install dependencies**
```bash
npm install
```

3. **Start the development server**
```bash
npm start
```

4. **Open your browser**
Navigate to `http://localhost:3000`

### Dependencies

The project uses the following main libraries:
- **React**: Frontend framework
- **Papa Parse**: CSV parsing and processing
- **SheetJS**: Excel file reading and parsing

## Usage Guide

### Step 1: Upload Your File
1. Click on "Choose File" or drag and drop your CSV/Excel file
2. Supported formats: `.csv`, `.xlsx`

### Step 2: Review Generated SQL
- The app automatically generates SQL code in the text area
- CREATE TABLE statement
- INSERT INTO statements for your data

### Step 3: Customize (Optional)
- **Rename Table**: Modify the table name in the generated SQL
- **Select Columns**: Use the column selector to include/exclude specific columns
- Changes update the SQL output in real-time

### Step 4: Export Your SQL
- **Copy**: Click "Copy" to copy SQL to clipboard
- **Download**: Click "Download" to save as `.sql` file

### Alternative: Paste Data
- Click "Paste" to manually input CSV or Excel data
- Useful for quick conversions without file uploads

## Example Input/Output

### Sample CSV Input
```csv
id,name,email,age,created_date
1,John Doe,john@example.com,28,2023-01-15
2,Jane Smith,jane@example.com,34,2023-01-16
3,Bob Johnson,bob@example.com,25,2023-01-17
```

### Generated SQL Output
```sql
CREATE TABLE my_table (
id VARCHAR,
name VARCHAR(,
email VARCHAR,
age VARCHAR,
created_date VARCHAR
);

INSERT INTO my_table (id, name, email, age, created_date) VALUES
(1, 'John Doe', 'john@example.com', 28, '2023-01-15'),
(2, 'Jane Smith', 'jane@example.com', 34, '2023-01-16'),
(3, 'Bob Johnson', 'bob@example.com', 25, '2023-01-17');
```



## Roadmap

### Planned Features
- [ ] **Database-specific SQL dialects** (MySQL, PostgreSQL, SQLite, SQL Server)
- [ ] **Advanced type inference** with custom type mapping
- [ ] **Batch file processing** for multiple files
- [ ] **SQL query builder** for SELECT statements
- [ ] **Data preview table** before SQL generation
- [ ] **Import from other different formats** (JSON, XML)
- [ ] **Schema validation** and constraint generation
- [ ] **Dark mode** theme support

### Known Issues
- Large files (>50MB) may cause performance issues
- Date format detection limited to common formats
- No support for nested JSON structures in CSV

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

1. Fork the project
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Acknowledgments

- Built with [React](https://reactjs.org/)
- CSV parsing powered by [Papa Parse](https://www.papaparse.com/)
- Excel support via [SheetJS](https://sheetjs.com/)

---

**Made with ❤️**
23 changes: 23 additions & 0 deletions Projects/SQLify/main/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
68 changes: 68 additions & 0 deletions Projects/SQLify/main/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `yarn build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
Loading