{"id":19771978,"url":"https://github.com/danieldacosta/rdbms-data-modeling","last_synced_at":"2025-04-30T17:33:05.045Z","repository":{"id":112641780,"uuid":"298927836","full_name":"DanielDaCosta/rdbms-data-modeling","owner":"DanielDaCosta","description":"ETL pipeline for building a database star schema.","archived":false,"fork":false,"pushed_at":"2024-07-20T18:16:01.000Z","size":534,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-20T19:31:29.508Z","etag":null,"topics":["etl","postgresql","rdbms"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielDaCosta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-27T01:16:04.000Z","updated_at":"2024-07-20T18:16:05.000Z","dependencies_parsed_at":"2023-06-02T07:00:32.918Z","dependency_job_id":null,"html_url":"https://github.com/DanielDaCosta/rdbms-data-modeling","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielDaCosta%2Frdbms-data-modeling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielDaCosta%2Frdbms-data-modeling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielDaCosta%2Frdbms-data-modeling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielDaCosta%2Frdbms-data-modeling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielDaCosta","download_url":"https://codeload.github.com/DanielDaCosta/rdbms-data-modeling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224219691,"owners_count":17275477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["etl","postgresql","rdbms"],"created_at":"2024-11-12T05:04:59.009Z","updated_at":"2024-11-12T05:04:59.613Z","avatar_url":"https://github.com/DanielDaCosta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rdbms Data Modeling\n\n## Database Schema\n\n![DatabaseSchema](Images/schema_database.png)\n\n## Files\n- *database.ini*: database credentials(*host, database, user, password, port*)\n- *create_tables.py*: run script to create database tables described on the image above\n- *etl.py*: run script to tranfer all the data from folder `data` to database\n- *sql_queries.py*: all queries\n- *etl.ipynb*: step-by-step tutorial on how to prepare the data for insertion\n\n## Usage\n\n1. Starting local PostgreSQL instance:\n```\ndocker-compose up\n```\n\nYou can edit your database credentials in `database.ini`\n\n2. Create the database running:\n```\npython create_tables.py\n```\n\n3. (optional) Run ETL.ipynb in order to check the full pipeline\n\n4. Run `elt.py`: it will read and process all the files from `song_data` and `log_data`, loading them into the database\n\n## Details\n\nThe data insertion is done using three methods from `psycopg2` library:\n\n- copy_from\n- execute(simple insertition statement)\n- executemany\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieldacosta%2Frdbms-data-modeling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieldacosta%2Frdbms-data-modeling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieldacosta%2Frdbms-data-modeling/lists"}