-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08d2af2
commit bbcde88
Showing
1 changed file
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,36 @@ | ||
# Convert Excel to MySQl Database Data | ||
# TC FRS Schedule to MySQL | ||
|
||
This project is to convert FRS Schedule data from Excel to MySQL database. The data comes from `Jadwal Kuliah T.Informatika.xlsx`. The data is converted to MySQL database using Rust. | ||
## Description | ||
This project is a part of the [Informatics FRS Helper](https://github.com/albugowy15/informatics-frs-helper) project to automatically parse all class schedule from Excel files to MySQL database. | ||
|
||
## Supported Commands and arguments | ||
`excel-to-db` : Parse all class schedule from Excel and save the output to MySQL database. | ||
- `-f --file` : Path to excel file | ||
- `-s --sheet` : Excel sheet name | ||
|
||
`parse-excel` : Parse all class schedule from Excel and save the output as `out.txt` file. | ||
- `-f --file` : Path to excel file | ||
- `-s --sheet` : Excel sheet name | ||
- `-o --outdir` : Output directory | ||
|
||
## Example | ||
``` | ||
auto-frs-schedule excel-to-db -f ~/Downloads/FRS.xlsx -s "Jadwal Kuliah" | ||
``` | ||
Open `FRS.xlsx` file from `~/Downloads` directory and parse all class schedule from `Jadwal Kuliah` sheet name. Then, save the output to MySQL database. | ||
|
||
|
||
``` | ||
auto-frs-schedule excel-to-db -f ~/Downloads/FRS.xlsx -s "Jadwal Kuliah" -o out/ | ||
``` | ||
Open `FRS.xlsx` file from `~/Downloads` directory and parse all class schedule from `Jadwal Kuliah` sheet name. Then, save the output to `out/out.txt` directory. | ||
|
||
## Libraries | ||
### calamine | ||
Calamine is a pure Rust Excel/OpenDocument Speadsheet file reader: it reads XLSX, XLS, ODS and more. | ||
### tokio | ||
A runtime for writing reliable, asynchronous, and slim applications with the Rust programming language. | ||
### mysql_async | ||
Async Mysql client library implemented in rust based on futures and tokio. | ||
### clap | ||
A full featured, fast Command Line Argument Parser for Rust. |