Skip to content

Commit

Permalink
docs: details of application
Browse files Browse the repository at this point in the history
  • Loading branch information
albugowy15 committed Jun 9, 2023
1 parent 08d2af2 commit bbcde88
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions README.md
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.

0 comments on commit bbcde88

Please sign in to comment.