{"id":19476349,"url":"https://github.com/wangpin34/sqldog","last_synced_at":"2025-10-16T15:26:12.992Z","repository":{"id":36718936,"uuid":"41025503","full_name":"wangpin34/sqldog","owner":"wangpin34","description":"Help you manage those strange sql files","archived":false,"fork":false,"pushed_at":"2016-05-05T10:02:18.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T08:14:20.508Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangpin34.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":"2015-08-19T09:32:42.000Z","updated_at":"2019-08-24T02:59:01.000Z","dependencies_parsed_at":"2022-09-05T20:51:07.695Z","dependency_job_id":null,"html_url":"https://github.com/wangpin34/sqldog","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/wangpin34%2Fsqldog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangpin34%2Fsqldog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangpin34%2Fsqldog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangpin34%2Fsqldog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangpin34","download_url":"https://codeload.github.com/wangpin34/sqldog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240701358,"owners_count":19843685,"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":[],"created_at":"2024-11-10T19:39:03.354Z","updated_at":"2025-10-16T15:26:07.939Z","avatar_url":"https://github.com/wangpin34.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqldog\n\nWhen develop project which depends on databases at your local machine, sometimes there are sqlfiles come from others or version control system like git and svn. Sqldog could help to manage this sql files. It can remember whether the file is executed or not. And it's convenient to use sqldog for executing sql files you want.  \n\nCurrent it's only support Mysql. And it depends on [mysql command line](http://dev.mysql.com/doc/refman/5.6/en/mysql.html).\n\n[![Build Status](https://travis-ci.org/wangpin34/sqldog.svg)](https://travis-ci.org/wangpin34/sqldog)\n\n[![Circle CI](https://circleci.com/gh/driftyco/sqldog.svg?style=svg)](https://circleci.com/gh/driftyco/sqldog)\n\n[![NPM](https://nodei.co/npm/sqldog.png?stars\u0026downloads)](https://nodei.co/npm/sqldog/)\n\n### Install\n\n```\nnpm install -g sqldog\n```\nInstall sqldog globally so that it can be used on commandline anywhere.\n\n### Usage\n* Initialize current dir as a sql dog watched dir\n```\nsqldog init\n```\nSome files are executed before and it's ok to ***set*** them as ***executed*** state within initialization.\n\n```\nsqldog init -se\n```\n\n* Config options\n```\nsqldog config\n```\nCurrently, db options can be configed here by the command.\n```\nprompt: Database Host:  (localhost)\nprompt: Database Port:  (3306)\nprompt: Username:  (root)\nprompt: Password:\n```\n  \n* Execute a sql file. If this file was executed by sqldog previously, this action will be rejected ad you will get a message.\n```\nsqldog exec sql_file_name\n```\n  \n* Of course , you can execute a sql file althouth it was executed.\n```\nsqldog exec -f sql_file_name\n```\n  \n* Get the status of the current sqldog dir.\n```\nsqldog status\n```\n* Sqldog ***walks*** around here and there to detect not tracked files, and removed files\n```\nsqldog walk\n```\n\n### License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangpin34%2Fsqldog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangpin34%2Fsqldog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangpin34%2Fsqldog/lists"}