Hi everybody :)
This program will only works on Linux systems and I believe it would be work perfectly on Macbooks. My OS is Ubuntu 18.04 and I design this program to run on all debian-based linux systems. The installation process will be different if you use other linux distributions.
This program import all data of a CSV file to database. (When I say database, I mean SQL database)
-
Using pyodbc to connect to your database and read every row using csv library and insert them one by one to database.
-
You can see ODBC Documentation
sudo apt update && sudo apt upgrade -y
sudo apt install git
I prefer using Anaconda instead of using Pip or PyPI, but you decide which is good for you.
- Using Pip:
sudo apt install python3-pip pip install pip pip install -r requirements.txt
- Using Anaconda: Installation process is completely documented here.
- Pip:
pip install -U pip
- Anaconda:
conda update --all
- Pip:
pip --version
- Anaconda:
conda --version
https://github.com/Hiiirad/csv-to-database.git
cd csv-to-database/
python csv-to-database.py
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.