{"id":15687351,"url":"https://github.com/jongha/spgen","last_synced_at":"2026-02-23T09:04:58.476Z","repository":{"id":12460276,"uuid":"15123509","full_name":"jongha/spgen","owner":"jongha","description":"Stored Procedure Generator. spgen is Stored Procedure Generator for MySQL. It's a Python script. It auto generates Stored Procedure which includes add, update, delete functions from existing tables.","archived":false,"fork":false,"pushed_at":"2015-07-17T05:22:28.000Z","size":159,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-06T20:13:14.523Z","etag":null,"topics":["generator","mysql","python","python-script"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/spgen","language":"Python","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/jongha.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":"2013-12-12T00:54:14.000Z","updated_at":"2023-03-15T05:30:23.000Z","dependencies_parsed_at":"2022-09-15T01:03:18.253Z","dependency_job_id":null,"html_url":"https://github.com/jongha/spgen","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/jongha%2Fspgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongha%2Fspgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongha%2Fspgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongha%2Fspgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jongha","download_url":"https://codeload.github.com/jongha/spgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252945803,"owners_count":21829661,"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":["generator","mysql","python","python-script"],"created_at":"2024-10-03T17:47:42.889Z","updated_at":"2026-02-23T09:04:53.391Z","avatar_url":"https://github.com/jongha.png","language":"Python","readme":"# Stored Procedure Generator\n[![Build Status](https://travis-ci.org/jongha/spgen.png?branch=master)](https://travis-ci.org/jongha/spgen)\n\nspgen is Stored Procedure Generator for MySQL. It's a Python script. It auto generates Stored Procedure which includes add, update, delete functions from existing tables.\n\n## Requirements\n\nThe program requires Python 2.x or Python 3.x.\nYou must install a [MySQL connector for python](http://dev.mysql.com/downloads/connector/python/).\n\n## Usage\n\n### From the command line\n\n    usage: spgen.py [-h] [-P PORT] [-u USER] [-p PASSWORD] [-d] host database [tables [tables ...]]\n\n    $ spgen.py -uim -ppw localhost mydb table1 table2 \n\n    positional arguments:\n        host                  Host to connect.\n        database              Database name.\n        tables                Table name. e.g table1 table2\n\n    optional arguments:\n        -h, --help            show this help message and exit\n        -P PORT, --port PORT  Port number to use for connection or 0 for default.\n        -u USER, --user USER  User for login.\n        -p PASSWORD, --password PASSWORD Password to use when connection to server.\n        -d, --debug           Set Debug mode.\n\n\n### Using a Library\n\nCheck out the run.py file.\n\n```\nfrom spgen.spgen import Spgen\n\ntry:\n    spgen = Spgen()\n    spgen.connect(\n        host = 'IP address',\n        database = 'database name',\n        tables = ['table1', 'table2'],\n        port = 3306,\n        user = 'user name',\n        password = 'user password');\n\n    spgen.build(debug=False) # debug argument is option\n    spgen.close()\n\n    exit(1)\n\nexcept:\n    exit(0)\n```\n\n## License\n\nspgen is available under the terms of the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongha%2Fspgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjongha%2Fspgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongha%2Fspgen/lists"}