Skip to content

Commit 316e198

Browse files
authored
Add Load data feature (#12)
* add Layout.tsx refacto code for css style * refacto front better code usability and clean up * refacto front #2 * refacto code #1 * refacto code #2 * refacto code #3 Select Component updt * Feat add sql execution in load data refacto test #1 * Fix SQL Load Data refacto variable in front-end to match the back-end var + new function to find the separator of a csv file * refacto unit test clean up function * updt crate in cargo and app version -> 1.0.5 * fix
1 parent f1c3298 commit 316e198

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1527
-856
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div align="center">
55
<img src="https://img.shields.io/badge/Rust-dea584?style=for-the-badge&logo=rust&logoColor=white" alt="Rust" />
66
<img src="https://img.shields.io/badge/Tauri-ffc130?style=for-the-badge&logo=tauri&logoColor=white" alt="Tauri" />
7-
<img src="https://img.shields.io/badge/Version-1.0.4-7073f6?style=for-the-badge" alt="Version" />
7+
<img src="https://img.shields.io/badge/Version-1.0.5-7073f6?style=for-the-badge" alt="Version" />
88
</div>
99
</div>
1010

@@ -124,4 +124,10 @@ There are two mode to insert the data into the database:
124124
The optimised mode might take longer to insert the data but it will create a table with the type of the columns
125125
optimised.
126126

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

130+
131+
## Contributing
132+
133+
If you want to contribute to the project, you can open an issue or a pull request.

assets/FileFlowDemo.png

535 KB
Loading

assets/Load_data.png

318 KB
Loading

index.html

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
3+
<head>
4+
<meta charset="UTF-8"/>
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
76
<title>FileFlow</title>
8-
</head>
9-
10-
<body>
11-
<div id="root"></div>
12-
<script type="module" src="/src/main.tsx"></script>
13-
</body>
7+
</head>
8+
<body>
9+
<div class="h-screen" id="root"></div>
10+
<script type="module" src="/src/main.tsx"></script>
11+
</body>
1412
</html>

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fileflow",
33
"private": true,
4-
"version": "1.0.4",
4+
"version": "1.0.5",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -10,11 +10,13 @@
1010
"tauri": "tauri"
1111
},
1212
"dependencies": {
13+
"@radix-ui/react-dialog": "^1.1.2",
1314
"@radix-ui/react-icons": "^1.3.1",
1415
"@radix-ui/react-label": "^2.1.0",
1516
"@radix-ui/react-menubar": "^1.1.2",
1617
"@radix-ui/react-radio-group": "^1.2.1",
1718
"@radix-ui/react-select": "^2.1.2",
19+
"@radix-ui/react-separator": "^1.1.0",
1820
"@radix-ui/react-slot": "^1.1.0",
1921
"@radix-ui/react-tooltip": "^1.1.4",
2022
"@tauri-apps/api": "^2.1.1",

pnpm-lock.yaml

+63
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.lock

+17-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "FileFlow"
3-
version = "1.0.4"
3+
version = "1.0.5"
44
description = "An app to insert CSV data into a DMBS with a GUI"
55
authors = ["Maxime-Cllt"]
66
edition = "2021"
@@ -12,19 +12,19 @@ tauri-build = { version = "2", features = [] }
1212

1313
[dependencies]
1414
tauri = { version = "2", features = [] }
15-
serde = { version = "1.0.214", features = ["derive"] }
16-
serde_json = "1.0.132"
15+
serde = { version = "1.0.215", features = ["derive"] }
16+
serde_json = "1.0.133"
1717
sqlx = { version = "0.8.2", features = ["runtime-tokio-native-tls", "mysql", "postgres", "sqlite"] }
18-
tokio = { version = "1.41.1", features = ["full"] }
18+
tokio = { version = "1.42.0", features = ["full"] }
1919
csv = "1.3.1"
20-
tauri-plugin-http = "2"
20+
tauri-plugin-http = "2.0.4"
2121
tauri-plugin-process = "2"
22-
tauri-plugin-fs = "2"
23-
tauri-plugin-os = "2"
22+
tauri-plugin-fs = "2.1.0"
23+
tauri-plugin-os = "2.0.1"
2424
tauri-plugin-clipboard-manager = "2.0.2"
25-
tauri-plugin-dialog = "2"
26-
tauri-plugin-notification = "2"
27-
tauri-plugin-shell = "2"
25+
tauri-plugin-dialog = "2.0.4"
26+
tauri-plugin-notification = "2.0.1"
27+
tauri-plugin-shell = "2.0.2"
2828

2929
[features]
3030
# This feature is used for production builds or when a dev server is not specified, DO NOT REMOVE!!

0 commit comments

Comments
 (0)