{"id":21473040,"url":"https://github.com/scriptfusion/amp-sql-profiler-bundle","last_synced_at":"2025-03-17T07:24:28.762Z","repository":{"id":214556469,"uuid":"736803202","full_name":"ScriptFUSION/Amp-SQL-profiler-bundle","owner":"ScriptFUSION","description":"Amp SQL profiler for Symfony WebProfilerBundle.","archived":false,"fork":false,"pushed_at":"2024-03-10T22:31:48.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T18:04:43.617Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/ScriptFUSION.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-28T23:27:10.000Z","updated_at":"2023-12-29T01:03:39.000Z","dependencies_parsed_at":"2024-03-10T23:40:04.469Z","dependency_job_id":null,"html_url":"https://github.com/ScriptFUSION/Amp-SQL-profiler-bundle","commit_stats":null,"previous_names":["scriptfusion/amp-sql-profiler-bundle"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptFUSION%2FAmp-SQL-profiler-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptFUSION%2FAmp-SQL-profiler-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptFUSION%2FAmp-SQL-profiler-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptFUSION%2FAmp-SQL-profiler-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScriptFUSION","download_url":"https://codeload.github.com/ScriptFUSION/Amp-SQL-profiler-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243989784,"owners_count":20379662,"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-23T10:14:26.127Z","updated_at":"2025-03-17T07:24:28.722Z","avatar_url":"https://github.com/ScriptFUSION.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Amp SQL profiler bundle \n=======================\n\nIf you use [Amp][] with [Symfony][] then you are probably based, but that means [Doctrine][] will be useless (except perhaps its query builder), so you can't use the handy query profiler from [DoctrineBundle][]. This is the missing SQL profiler for Amp.\n\nFeatures\n--------\n\nProfiles Amp SQL connections in Symfony applications and displays the results in the [Symfony Profiler][] toolbar.\n\n* Shows query summary in toolbar view.\n* Shows full query details in profiler view.\n* Supports transactions.\n* Supports backtraces.\n\n\n### Limitations\n\nUsing an unsupported feature may throw `NotImplementedException`.\n\n* Does not support prepared statements.\n* Does not support transaction save points.\n\nInstallation\n------------\n\nAdd the bundle to your project with [Composer][].\n\n```sh\ncomposer require --dev async/amp-sql-profiler-bundle\n```\n\nIf [Symfony Flex][] is installed, it should update `bundles.php` automatically with a line similar to the following.\n\n```php\nScriptFUSION\\AmpSqlProfilerBundle\\AmpSqlProfilerBundle::class =\u003e ['dev' =\u003e true, 'test' =\u003e true],\n```\n\nWe recommend removing the `'test'` key and only running the bundle in `dev`. If Flex is not available, the line can be added manually.\n\nTo enable profiling, all instances of `Amp\\Sql\\Pool` must be replaced with `ProfiledPool` at dependency injection time. To do this, add the following line to `services_dev.yaml`.\n\n```yaml\n  # Enable Amp SQL profiling.\n  Amp\\Sql\\Pool:\n    factory: '@ScriptFUSION\\AmpSqlProfilerBundle\\ProfiledPoolFactory'\n```\n\nUnfortunately, this will create a circular reference because `ProfiledPoolFactory` creates an instance of `ProfiledPool` which requires an instance of `Amp\\Sql\\Pool`. This can be resolved by specifying the specific implementation of the Pool that we want to profile. For example, the following configuration may suffice to profile Postgres.\n\n```yaml\n  ScriptFUSION\\AmpSqlProfilerBundle\\ProfiledPool:\n    arguments:\n      - '@Amp\\Postgres\\PostgresConnectionPool'\n\n  Amp\\Postgres\\PostgresConnectionPool: ~\n```\n\n\n  [Amp]: https://amphp.org\n  [Symfony]: https://symfony.com\n  [Symfony Flex]: https://symfony.com/doc/current/setup/flex\n  [Symfony Profiler]: https://symfony.com/doc/current/profiler\n  [Doctrine]: https://www.doctrine-project.org\n  [DoctrineBundle]: https://github.com/doctrine/DoctrineBundle\n  [Composer]: https://getcomposer.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptfusion%2Famp-sql-profiler-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptfusion%2Famp-sql-profiler-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptfusion%2Famp-sql-profiler-bundle/lists"}