{"id":20215484,"url":"https://github.com/alefrp/database_searcher","last_synced_at":"2026-04-09T18:47:43.479Z","repository":{"id":213751640,"uuid":"734845824","full_name":"AlefRP/database_searcher","owner":"AlefRP","description":"A Python tool for efficiently searching values across multiple tables and columns in PostgreSQL, MySQL, and SQL Server databases, ideal for data migrations and analysis.","archived":false,"fork":false,"pushed_at":"2023-12-22T20:09:57.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T21:47:09.131Z","etag":null,"topics":["database","mysql","open-source","postgresql","python","sql","sqlserver"],"latest_commit_sha":null,"homepage":"","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/AlefRP.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-22T19:42:22.000Z","updated_at":"2023-12-27T11:13:40.000Z","dependencies_parsed_at":"2023-12-22T21:00:08.694Z","dependency_job_id":"8774d4e7-a1e8-4408-a6fa-f7f1a61040be","html_url":"https://github.com/AlefRP/database_searcher","commit_stats":null,"previous_names":["alefrp/database_searcher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlefRP%2Fdatabase_searcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlefRP%2Fdatabase_searcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlefRP%2Fdatabase_searcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlefRP%2Fdatabase_searcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlefRP","download_url":"https://codeload.github.com/AlefRP/database_searcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241652964,"owners_count":19997578,"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":["database","mysql","open-source","postgresql","python","sql","sqlserver"],"created_at":"2024-11-14T06:22:35.835Z","updated_at":"2026-04-09T18:47:38.453Z","avatar_url":"https://github.com/AlefRP.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DatabaseSearcher :mag_right:\n\n\u003e A versatile tool for searching specific values across different database types including PostgreSQL, MySQL, and SQL Server.\n\n## :page_with_curl: Introduction\n\n`DatabaseSearcher` is a Python tool designed to facilitate searching for specific values across all tables and columns of various types of databases. It supports PostgreSQL, MySQL, and SQL Server, making it a versatile solution for database administrators and developers.\n\n## :gear: Installation\n\nBefore installing `DatabaseSearcher`, ensure you have Python installed on your system. Then, you can install the necessary database drivers using pip:\n\n```bash\npip install psycopg2-binary mysql-connector-python pyodbc\n```\n\n## :rocket: Usage\n\nTo use `DatabaseSearcher`, you need to set up your database configuration. Here's an example for PostgreSQL:\n\n```python\ndb_config = {\n    'type': 'postgresql',\n    'host': 'localhost',\n    'port': 5432,\n    'dbname': 'mydatabase',\n    'user': 'myuser',\n    'password': 'mypassword'\n}\n```\n\nAfter configuring the database, you can initialize and use DatabaseSearcher as follows:\n\n```python\nfrom db_searcher import DatabaseSearcher\n\n# Create an instance of the DatabaseSearcher\nsearcher = DatabaseSearcher(db_config)\n\n# Perform the search\nsearch_value = 'value_to_search'\nexpected_type = 'data_type_of_column'\ncomparison_type = 'LIKE'  # or 'EQUAL'\n\ntry:\n    searcher.search_value(search_value, expected_type, comparison_type)\nfinally:\n    searcher.close()\n```\n\nThis section provides clear instructions on how to set up and use the `DatabaseSearcher` with a PostgreSQL database as an example. The Python code snippets illustrate how to configure the database, initialize the searcher, and perform a search operation.\n\n## :memo: License\n\nThis project is licensed under the [MIT License](LICENSE.md) - see the LICENSE file for details.\n\n## :email: Contact\n\nIf you have any questions, feature requests, or bug reports, please feel free to open an issue on our GitHub repository. We welcome contributions, so if you'd like to make changes or improvements, please fork the repository and submit a pull request.\n\n- **Open an Issue**: [GitHub Issues](https://github.com/AlefRP/database_searcher/issues)\n- **Submit a Pull Request**: Fork the repository and create a pull request with your changes.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falefrp%2Fdatabase_searcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falefrp%2Fdatabase_searcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falefrp%2Fdatabase_searcher/lists"}