{ "info": { "author": "dmb", "author_email": "d.babiak@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython" ], "description": "\n![](http://wildgoosefestival.org/wp-content/uploads/2014/06/wild-goose-in-action.jpg)\n\n## SQL migrations for Postgres\n```\nPGPASSWORD=top-secret goose ./tests/master_migrations \n```\n(Assuming you have a Postgres server running on `localhost:5432` with a high-entropy admin password)\n\n## Installation\n```\npip install postgoose\n```\n\n## Usage\n\n```\ngoose [-h] [--host HOST] [-p PORT] [-U USERNAME] [-d DBNAME]\n migrations_directory\n\npositional arguments:\n migrations_directory Path to directory containing migrations\n\noptional arguments:\n -h, --help show this help message and exit\n --host HOST\n -p PORT, --port PORT\n -U USERNAME, --username USERNAME\n -d DBNAME, --dbname DBNAME\n```\n\nWhere `migrations_directory` is some directory of form:\n```\n./migrations\n 1_up.sql\n 1_down.sql\n 2_up.sql\n 2_down.sql\n 3_up.sql\n 3_down.sql\n```\n\nCurrent main difference from Play Framework migrations is that a migration in Goose is all-or-nothing.\n\nE.g. you are on master branch on revision 5 and want to switch to a feature branch whose latest revision is 4'.\n```\n1 <- 2 <- 3 <- 4 <- 5 \n \\\n 3' <- 4' \n```\nApplying migrations through Goose will leave you on either revision 5 (if an error is encountered) or revision 4' (if migration is successful) but not on any of 4, 3, 2, or 3'. \n\n--------------------------------------------------------------------\n# License\n\nCopyright 2018 LeanTaas, Inc. \n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/leantaas/postgoose", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "postgoose", "package_url": "https://pypi.org/project/postgoose/", "platform": "", "project_url": "https://pypi.org/project/postgoose/", "project_urls": { "Homepage": "https://github.com/leantaas/postgoose" }, "release_url": "https://pypi.org/project/postgoose/0.0.4/", "requires_dist": [ "psycopg2 (>=2.7.5)" ], "requires_python": ">=3.6.0", "summary": "SQL migrations for Postgres", "version": "0.0.4" }, "last_serial": 4314862, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "cb47a4af73a3b3053b0f72e7566a8f64", "sha256": "199a873f0907a511e3287885b098d04b2a088d36fcf940ba113b8376bff8b8d3" }, "downloads": -1, "filename": "postgoose-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cb47a4af73a3b3053b0f72e7566a8f64", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 4509, "upload_time": "2018-09-26T01:18:24", "url": "https://files.pythonhosted.org/packages/7f/1c/7ea4b76e106820644d6423f2533831f247f611359325ec4590b2c3e1fae5/postgoose-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "46c6cb33e680d3b8e4b4dd17f8e6f81b", "sha256": "5d0027eddd7f0d2b6418cca6a3e895951e400bb3c3b2e44f690263810f859e2d" }, "downloads": -1, "filename": "postgoose-0.0.3.tar.gz", "has_sig": false, "md5_digest": "46c6cb33e680d3b8e4b4dd17f8e6f81b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 4967, "upload_time": "2018-09-26T01:18:25", "url": "https://files.pythonhosted.org/packages/eb/22/ef45091e640e72bd45c5a52c9a3bc4c22abccf032c2bad5a0d6127fd45a9/postgoose-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "f1a29915c30e7e998b06587d601d0d37", "sha256": "502e573aab59b9c489f5a757453c22e147513281ba00782deaf12e1af21f26b1" }, "downloads": -1, "filename": "postgoose-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f1a29915c30e7e998b06587d601d0d37", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 4898, "upload_time": "2018-09-27T03:37:28", "url": "https://files.pythonhosted.org/packages/be/ff/8d53fd2da71f9b7ee67e83c40abefdfb124d25825760f5634c965e04e7cd/postgoose-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a48a79f22e51e7d435517b5303870c01", "sha256": "45e4e7c4c2f465d2d156f07faca4dffe38138394e4e87220b5f182d8d491e308" }, "downloads": -1, "filename": "postgoose-0.0.4.tar.gz", "has_sig": false, "md5_digest": "a48a79f22e51e7d435517b5303870c01", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5409, "upload_time": "2018-09-27T03:37:29", "url": "https://files.pythonhosted.org/packages/22/54/f1533b0880f02c8ce87f7ba7cab846ff1fca4c0d5c98e50cfd7fc979a384/postgoose-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f1a29915c30e7e998b06587d601d0d37", "sha256": "502e573aab59b9c489f5a757453c22e147513281ba00782deaf12e1af21f26b1" }, "downloads": -1, "filename": "postgoose-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f1a29915c30e7e998b06587d601d0d37", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 4898, "upload_time": "2018-09-27T03:37:28", "url": "https://files.pythonhosted.org/packages/be/ff/8d53fd2da71f9b7ee67e83c40abefdfb124d25825760f5634c965e04e7cd/postgoose-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a48a79f22e51e7d435517b5303870c01", "sha256": "45e4e7c4c2f465d2d156f07faca4dffe38138394e4e87220b5f182d8d491e308" }, "downloads": -1, "filename": "postgoose-0.0.4.tar.gz", "has_sig": false, "md5_digest": "a48a79f22e51e7d435517b5303870c01", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5409, "upload_time": "2018-09-27T03:37:29", "url": "https://files.pythonhosted.org/packages/22/54/f1533b0880f02c8ce87f7ba7cab846ff1fca4c0d5c98e50cfd7fc979a384/postgoose-0.0.4.tar.gz" } ] }