{"id":37014896,"url":"https://github.com/g4code/db-tools","last_synced_at":"2026-01-14T01:29:39.840Z","repository":{"id":16426197,"uuid":"79921691","full_name":"g4code/db-tools","owner":"g4code","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-08T08:57:57.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-10-20T08:02:56.496Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/g4code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-01-24T15:01:49.000Z","updated_at":"2022-03-30T08:29:16.000Z","dependencies_parsed_at":"2023-11-08T10:15:28.369Z","dependency_job_id":null,"html_url":"https://github.com/g4code/db-tools","commit_stats":{"total_commits":18,"total_committers":3,"mean_commits":6.0,"dds":"0.16666666666666663","last_synced_commit":"6b567533efc0de91ceaef7af04a0d8c6e5451de7"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/g4code/db-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g4code%2Fdb-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g4code%2Fdb-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g4code%2Fdb-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g4code%2Fdb-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g4code","download_url":"https://codeload.github.com/g4code/db-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g4code%2Fdb-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-14T01:29:39.069Z","updated_at":"2026-01-14T01:29:39.832Z","avatar_url":"https://github.com/g4code.png","language":"PHP","readme":"# db-tools\n\nUsage\n\nInside project folder, it's required to create this set of folders\n\n```text\ndb/\n  dumps/ \n  logs/\n  migrations/\n    default/\n```\nRoot folder may be configured with parameter `ruckusing_dir`.\n\nCommand line has some required options:\n\n```\n ini - Relative path to application.ini which contain's database configuration files\n env - Environment which will be read from application.ini\n sql-dump - Relative path to SQL file that needs to be imported\n ruckusing_dir - dir name of where database and migration related files are\n```\n\nExample:\n\n```text\nphp vendor/g4/db-tools/bin/tools.php import:data env=$(env) sql-dump=${ND_API_SQL_DUMP} ini=${APPLICATION_INI} ruckusing_dir=${RUCKUSING_DIR}\n```\n\n```text\nphp vendor/g4/db-tools/bin/ruckus.php db:status env=$(env) ini=${APPLICATION_INI} ruckusing_dir=${RUCKUSING_DIR}\n```\n\nThis variables should be defined inside Makefile like:\n\n```\nAPPLICATION_INI  = application/setup/config/application.ini\nRUCKUSING_DIR    = db\nND_API_SQL_DUMP  = $(RUCKUSING_DIR)/dumps/nd_api_v1.0.0.sql\nGEONAME_SQL_DUMP = $(RUCKUSING_DIR)/dumps/geoname.compact.sql\n```\n\nImport db-tools makefile targets into project's Makefile with\n```\ninclude vendor/g4/db-tools/dbtools.mk\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg4code%2Fdb-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg4code%2Fdb-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg4code%2Fdb-tools/lists"}