{"id":16175381,"url":"https://github.com/app-generator/devtool-db-introspection","last_synced_at":"2025-07-17T07:06:55.730Z","repository":{"id":49500554,"uuid":"458029153","full_name":"app-generator/devtool-db-introspection","owner":"app-generator","description":"Database Introspection Tool - Open-Source | AppSeed","archived":false,"fork":false,"pushed_at":"2022-07-26T13:47:02.000Z","size":27,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-12T19:14:40.957Z","etag":null,"topics":["data-analysis","database-schema","database-tool","db-scan","db-tool","developer-tools","peewee","peewee-orm","python-database","python-datatypes","python-db","python-tool"],"latest_commit_sha":null,"homepage":"https://appseed.us/developer-tools/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/app-generator.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-11T03:14:41.000Z","updated_at":"2025-03-29T05:02:39.000Z","dependencies_parsed_at":"2022-09-16T02:10:56.438Z","dependency_job_id":null,"html_url":"https://github.com/app-generator/devtool-db-introspection","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/app-generator/devtool-db-introspection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdevtool-db-introspection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdevtool-db-introspection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdevtool-db-introspection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdevtool-db-introspection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/devtool-db-introspection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdevtool-db-introspection/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265575513,"owners_count":23790781,"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":["data-analysis","database-schema","database-tool","db-scan","db-tool","developer-tools","peewee","peewee-orm","python-database","python-datatypes","python-db","python-tool"],"created_at":"2024-10-10T04:44:44.282Z","updated_at":"2025-07-17T07:06:55.715Z","avatar_url":"https://github.com/app-generator.png","language":"Python","readme":"# Database Introspection Tool\n\n`Open-Source` **[developers tool](https://appseed.us/developer-tools/)** that provides simple helpers for legacy databases introspection. Crafted on top of `Python` and [Peewee](http://docs.peewee-orm.com/en/latest/).\n\n- 👉 Free [support](https://appseed.us/support/) via Email and [Discord](https://discord.gg/fZC6hup)\n- 👉 More [Developer Tools](https://appseed.us/developer-tools/) - provided by AppSeed\n\n\u003cbr /\u003e\n\n\u003e Features\n\n- `Peewee` DB Reflection\n- Supported DB:\n  - SQLite, MySql, PostgreSQL\n- DbWrapper Class:\n  - `print_all_models()` - returns all tables\n  - `print_db_model` - print table definition\n  - `dump_tables()` - Dump SQL definitions (all tables) \n  - `dump_tables_data()` - Dump database content (all tables)\n\n\n\u003e [Support](https://appseed.us/support) via **Github** (issues tracker) and [Discord](https://discord.gg/fZC6hup).\n \n\u003cbr /\u003e\n\n![DB Migration Tool - Open-Source Developer Tool provided by AppSeed.](https://user-images.githubusercontent.com/51070104/153570755-dde19fba-03ca-4eed-a156-6a8efb1ef949.png)\n\n\u003cbr /\u003e\n\n## ✨ Quick Start\n\n\u003e Clone Sources (this repo)\n\n```bash\n$ git clone https://github.com/app-generator/devtool-db.git\n$ cd devtool-db\n```\n\n\u003cbr /\u003e\n\n\u003e Install Modules using a Virtual Environment\n\n```bash\n$ virtualenv env\n$ source env/bin/activate\n$ pip install -r requirements.txt\n```\n\nOr for **Windows-based Systems**\n\n```bash\n$ virtualenv env\n$ .\\env\\Scripts\\activate\n$\n$ # Install modules - SQLite Database\n$ pip3 install -r requirements.txt\n```\n\n\u003cbr /\u003e\n\n\u003e Launch the Python console\n\n```bash\n$ python\n\u003e\u003e\u003e \n\u003e\u003e\u003e from util import *                                  # import helpers      \n\u003e\u003e\u003e                    \n\u003e\u003e\u003e db_sqlite = DbWrapper()                             # invoke the Base Class  \n\u003e\u003e\u003e db_sqlite.driver = COMMON.DB_SQLITE                 # set driver\n\u003e\u003e\u003e db_sqlite.db_name = 'samples/api-django.sqlite3'    # set db name\n\u003e\u003e\u003e db_sqlite.connect()                                 # connect \nTrue \n\u003e\u003e\u003e db_sqlite.load_models()                             # load DB SChema \nTrue\n\u003e\u003e\u003e db_sqlite.dump_tables()                             # Dump tables definitions \nTrue\n\u003e\u003e\u003e db_sqlite.dump_tables_data()                        # Dump data\n \u003e Dump data for [api_user_user]\n \u003e Dump data for [api_authentication_activesession]\n \u003e Dump data for [auth_group]\n \u003e Dump data for [api_user_user_groups]\n \u003e Dump data for [django_content_type]\n \u003e Dump data for [auth_permission]\n \u003e Dump data for [api_user_user_user_permissions]\n \u003e Dump data for [auth_group_permissions]\n \u003e Dump data for [django_admin_log]\n \u003e Dump data for [django_migrations]\n \u003e Dump data for [django_session]\nTrue\n\u003e\u003e\u003e db_sqlite.reset()                                     # reset the Class data  \n\u003e\u003e\u003e\n```\n\n\u003cbr /\u003e\n\nAt this point, the tables and data are saved in the [output](https://github.com/app-generator/devtool-db/tree/main/output) directory.\n\n```bash\n$ cd output ; ls \n$ SQLITE.sql\n$ SQLITE_api_user_user.sql\n$ SQLITE_auth_permission.sql\n$ SQLITE_django_content_type.sql\n$ SQLITE_django_migrations.sql\n```\n\n\u003cbr /\u003e\n\n--- \nDatabase Introspection Tool - Provided by **AppSeed** [App Generator](https://appseed.us/app-generator).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fdevtool-db-introspection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Fdevtool-db-introspection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fdevtool-db-introspection/lists"}