feat: Add COX MySQL tools and resources for event references and function lookups

- Implemented DatabaseQueries resource for FiveM database query examples.
- Created GetCOXEventReference tool to retrieve information about COX MySQL events.
- Developed GetCOXFunction tool to look up COX MySQL functions and methods.
- Added views for displaying event lists, event references, and function details.
- Included comprehensive CRUD operation examples for database interactions in FiveM.
- Established tests for GetCOXEventReference and GetCOXFunction tools to ensure functionality.
This commit is contained in:
Adrian Mejias committed 2026-03-01 01:20:59 -06:00
1 parent 18765b1013
commit a2591c2209
12 files changed
+1484 -477

No files matched your search

+30
View File
@@ -191,6 +191,36 @@ class SearchFiveMDocs extends Tool
'description' => 'Database transaction handling with COX MySQL library',
'keywords' => ['cox', 'mysql', 'transaction', 'commit', 'rollback'],
],
[
'title' => 'COX Docs - Prepared Statements',
'url' => 'https://coxdocs.dev/prepared-statements',
'description' => 'Prepared statements for secure SQL queries and SQL injection prevention',
'keywords' => ['cox', 'mysql', 'prepared', 'statement', 'security', 'injection'],
],
[
'title' => 'COX Docs - Connection Pooling',
'url' => 'https://coxdocs.dev/connection-pooling',
'description' => 'Connection pooling and management for optimal database performance',
'keywords' => ['cox', 'mysql', 'connection', 'pool', 'pooling', 'performance'],
],
[
'title' => 'COX Docs - Common Patterns',
'url' => 'https://coxdocs.dev/patterns',
'description' => 'Common database patterns (CRUD operations, async queries, error handling)',
'keywords' => ['cox', 'mysql', 'pattern', 'crud', 'create', 'read', 'update', 'delete'],
],
[
'title' => 'COX Docs - Debugging & Performance',
'url' => 'https://coxdocs.dev/debugging',
'description' => 'Debugging MySQL queries, performance optimization, and troubleshooting',
'keywords' => ['cox', 'mysql', 'debug', 'performance', 'optimize', 'slow', 'error'],
],
[
'title' => 'COX Docs - Best Practices',
'url' => 'https://coxdocs.dev/best-practices',
'description' => 'Database best practices and conventions for FiveM development',
'keywords' => ['cox', 'mysql', 'best', 'practice', 'convention', 'standard'],
],
],
];