{"id":20581270,"url":"https://github.com/jonathas/fileloader","last_synced_at":"2026-04-17T08:32:38.048Z","repository":{"id":141967717,"uuid":"51717978","full_name":"jonathas/fileloader","owner":"jonathas","description":"A file loader written in Perl that reads a tsv file and loads its content into a MySQL database","archived":false,"fork":false,"pushed_at":"2016-02-15T07:48:06.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T12:16:37.669Z","etag":null,"topics":["fileloader","mysql","perl"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonathas.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}},"created_at":"2016-02-14T22:49:17.000Z","updated_at":"2017-11-05T11:21:44.000Z","dependencies_parsed_at":"2023-05-02T05:34:28.239Z","dependency_job_id":null,"html_url":"https://github.com/jonathas/fileloader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jonathas/fileloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathas%2Ffileloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathas%2Ffileloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathas%2Ffileloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathas%2Ffileloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathas","download_url":"https://codeload.github.com/jonathas/fileloader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathas%2Ffileloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31921928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fileloader","mysql","perl"],"created_at":"2024-11-16T06:27:48.077Z","updated_at":"2026-04-17T08:32:38.027Z","avatar_url":"https://github.com/jonathas.png","language":"Perl","readme":"# FileLoader\n\nA \"loader\" that is executed with parameters: path, file_mask\n\nThen connects to the DB (MySQL), looks to given path, reads a tab separated text file, loads file content to DB and moves file to {path}/executed\n\nRules:\n\n- If there already exists record in DB with given ID, that record is updated with information from file and update_timestamp is set to system current timestamp.\n- If new record is detected in file, new record is created in DB with attributes from file and Update_timestamp is set to system current timestamp.\n- If any update is detected, record in DB is updated and Update_timestamp is set to system current timestamp.\n- If record does not exist in the file, no action is taken.\n\nFiles shall contain 3 columns:\n\n```\nID (varchar 32)\nName (varchar 255)\nDate (date)\n```\n\nDatabase stores in one table:\n\n```\nID (varchar 32)\nName (varchar 255)\nDate (date)\nUpdate_timestamp (timestamp)\n```\n\nUsage: \n\n```\nfileloader.pl path file_mask\n```\n\nExample:\n\n```\nfileloader.pl /var/loader_files headers.tsv\n```\n\n----\n\nTODO:\n\n- Improve error handling\n- Implement Unit Tests","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathas%2Ffileloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathas%2Ffileloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathas%2Ffileloader/lists"}