Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxime-cllt/fileflow

Application to insert CSV file into a specified database with optimised columns lenght
https://github.com/maxime-cllt/fileflow

csv2sql freetouse githubaction-workflow jsx react rust taillwindcss tauri-app tool

Last synced: 8 days ago
JSON representation

Application to insert CSV file into a specified database with optimised columns lenght

Awesome Lists containing this project

README

        


FileFlow

FileFlow



Rust
Tauri
Version


FileFlow
FileFlow

## Description

FileFlow is a simple tool that allows you to insert data from a CSV file into a table in a database. It is designed to
be simple to use and to require no privilege to insert the data.
Build with Rust and the Tauri framework, it is a cross-platform application that can be used on Windows, MacOS and
Linux.

See in the release section for the latest version of the application.

## Features

Insert data into a new table

Insert data into an existing table

Optimise the type of the columns (VARCHAR(MAX_LENGHT))

From CSV file

Don't require ANY privilege to insert the data

Generate LOAD DATA sql query to insert faster

## Supported databases

![MySQL](https://img.shields.io/badge/MySQL-00758F?style=for-the-badge&logo=mysql&logoColor=white)
![MySQL](https://img.shields.io/badge/MariaDB-003545?style=for-the-badge&logo=mariadb&logoColor=white)
![PostgreSQL](https://img.shields.io/badge/PostgreSQL-336791?style=for-the-badge&logo=postgresql&logoColor=white)
![SQLite](https://img.shields.io/badge/SQLite-003B57?style=for-the-badge&logo=sqlite&logoColor=white)

## Requirements

- Rust
- Cargo
- pnpm

To install Rust and Cargo, you can follow the instructions on the Tauri website

## Installation

1. Clone the repository

```bash
git clone https://github.com/Maxime-Cllt/FileFlow.git
```

2. Install the dependencies

```bash
cd FileFlow
```

```bash
pnpm install
```

3. Build the application

```bash
pnpm tauri build
```

4. Run the application

```bash
pnpm tauri dev
```

## Usage


  1. Insert Data


    • Select the CSV file you want to insert into the database

    • Select the database you want to insert the data into

    • Click on the "Insert" button

    • Wait for the data to be inserted

    • Done!


  2. Generate Load data


    • Select the CSV file you want to insert into the database

    • Click on the "Load" button in the menu

    • Copy the generated SQL query

    • Run the query if your database support it

    • Done!


## Information

There are two mode to insert the data into the database:

- **Optimised mode**: The data is inserted into a new table with the type of the columns optimised (VARCHAR(MAX_LENGHT))
- **Fast mode**: The data is inserted into an existing table with the type of the columns as they are in the CSV file

The optimised mode might take longer to insert the data but it will create a table with the type of the columns
optimised.

You can also generate a LOAD DATA SQL query to insert the data faster if your database support it. It is way faster than
inserting the data row by row but not all databases support it.

## Contributing

If you want to contribute to the project, you can open an issue or a pull request.