In this proof of concept (POC), I have developed a streamlined contact application utilizing SQLite as the underlying database. The primary aim of this project is to acquire foundational programming skills in SQL, comprehend effective code structuring in Python, implement comprehensive testing methodologies, employ requirement files for dependency management, and generate relevant diagrams to enhance understanding and documentation.
- Set the enviroment
- Ensure you have Python installed on your machine
- Learn that SQLite3 comes pre-installed with Python
- Using the Python sqlite3 library
- Connect to a memory Database
- Create a table named contacts with columns like id, firstname, lastname, email, and phone
- Create functions for basic operations
- Implement functions:
- Add a contact
- Retrieve a contact
- Update a contact
- Delete a contact
- Implement a menu-driven uesr interface.
- Implement functions:
You can find the creation and the insertion SQL scripts in the documents table.
You are going to work with a database in memory with the following structure
and the initial data is the following
- SQL
- SQLite
- Queries for a CRUD operation:
- INSERT -> CREATE
- SELECT -> READ
- UPDATE -> UPDATE
- DELETE -> DELETE
- Documentation:
- Entity Relationship Diagram (ERD) - Only Table Objecs
- Extensions:
- Excel Viewer
- Drawio
- Python:
- Create Enviroment with PIP
- Introduction To Classes
- Read a file