You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,7 +40,7 @@ Using this package, comments like this will be added:
26
40
27
41
```sql
28
42
select*from users /*framework='Hyperf',
29
-
application='hyperf-skeleton'
43
+
application='hyperf-skeleton',
30
44
controller='UserController',
31
45
action='index',
32
46
route='%%2Fapi%%2Ftest',
@@ -52,31 +66,10 @@ Various tools and services can interpret these comments, helping to correlate us
52
66
53
67
Here is an example of how this information appears within [Google Cloud SQL](https://cloud.google.com/sql/docs/postgres/using-query-insights):
54
68
55
-

69
+

56
70
57
71
In addition to **Cloud SQL**, several other tools also support _sqlcommenter_. One example is the [Planetscale Query Insights](https://planetscale.com/docs/concepts/query-insights).
58
72
59
-
## Features
60
-
61
-
- Automatically adds sqlcommenter-compatible comments to SQL queries.
62
-
- Provides better traceability and insights into database interactions.
When you install the library in your project, it will be automatically enabled through the default settings. Therefore, to use this library, you only need to have it installed in your project.
@@ -100,6 +93,13 @@ With the settings below, you can enable or disable the comments generated by thi
100
93
101
94
You can refer to the documentation for more details.
102
95
96
+
## Features
97
+
98
+
- Automatically adds sqlcommenter-compatible comments to SQL queries.
99
+
- Provides better traceability and insights into database interactions.
100
+
- Easy integration with the Hyperf framework.
101
+
- Supports multiple database drivers.
102
+
103
103
## Performance
104
104
105
105
Using the Sqlcommenter Hyperf library may introduce a small performance impact due to the addition of comments to SQL queries. However, the benefits in terms of traceability, ease of debugging, and integration with monitoring tools generally outweigh this impact.
0 commit comments