{"id":18383060,"url":"https://github.com/timkelty/shipit-db","last_synced_at":"2025-04-06T23:32:03.916Z","repository":{"id":26439138,"uuid":"29889902","full_name":"timkelty/shipit-db","owner":"timkelty","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-07T19:18:29.000Z","size":33,"stargazers_count":21,"open_issues_count":10,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T11:47:00.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/timkelty.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}},"created_at":"2015-01-27T00:44:17.000Z","updated_at":"2021-12-20T01:39:02.000Z","dependencies_parsed_at":"2022-09-26T16:21:30.489Z","dependency_job_id":null,"html_url":"https://github.com/timkelty/shipit-db","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timkelty%2Fshipit-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timkelty%2Fshipit-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timkelty%2Fshipit-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timkelty%2Fshipit-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timkelty","download_url":"https://codeload.github.com/timkelty/shipit-db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569124,"owners_count":20959758,"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-06T01:09:55.597Z","updated_at":"2025-04-06T23:32:02.111Z","avatar_url":"https://github.com/timkelty.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shipit-db\n\nA set of database tasks for [Shipit](https://github.com/shipitjs/shipit).\n\n**Features:**\n\n- Works via [shipit-cli](https://github.com/shipitjs/shipit) and [grunt-shipit](https://github.com/shipitjs/grunt-shipit)\n- Optionally ignore specified tables\n\n**Roadmap**\n\n- DB Backup tasks\n\n## Install\n\n```\nnpm install shipit-db\n```\n\n## Usage\n\n### Example `shipitfile.js`\n\n```js\nmodule.exports = function (shipit) {\n  require('shipit-db')(shipit);\n\n  shipit.initConfig({\n    default: {\n      db: {\n        ignoreTables: ['some_table'],\n        local: {\n          host     : 'localhost',\n          adapter  : 'mysql',\n          username : 'root',\n          password : 'root',\n          socket   : '/Applications/MAMP/tmp/mysql/mysql.sock',\n          database : 'mysite_local',\n        },\n      }\n    },\n    staging: {\n      servers: 'user@myserver.com',\n      db: {\n        remote: {\n          host     : '127.0.0.1',\n          adapter  : 'mysql',\n          username : 'myusername',\n          password : '123password',\n          database : 'mysite_staging',\n        }\n      }\n    }\n  });\n};\n```\n\nDump your local database, upload and import to remote:\n\n```\nshipit staging db:push\n```\n\nDump your remote database, download and import to local:\n\n```\nshipit staging db:pull\n```\n\n## Options (`shipit.config.db`)\n\n### `db.ignoreTables`\n\nType: `Array`\n\nAn array of database tables to ignore.\n\n### `db.local` \\ `db.remote`\n\nType: `Object`\n\nAn object of database credentials.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimkelty%2Fshipit-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimkelty%2Fshipit-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimkelty%2Fshipit-db/lists"}