SQL Fiddle

( From the Labs)

by ChangezKhan

Using SQL Fiddle, admin users can query the database directly from their CRM instances, also can see the the details about the database, its tables and their corresponding columns..

SQLFiddle

Version 3.0

SQL Fiddle is a plugin for SuiteCRM

This module provides SQL Editor functionality in SuiteCRM.
After installation you will find an extra item SQL Fiddle in the admin panel where you can query into database.
It connects to CRM database using database credentials mentioned in config file of CRM.
In the left side of window, you can see the details about the database, its tables and their corresponding columns.
Only admin users can query into database.

Demo

Demo

Installing the Add-on

The ONLY step

Install plug-in using Module Loader, Admin > Module Loader.

Install SQL Fiddle

Usage

After installation, you'll get to see the link on admin section under Developer Tools.

Link to SQL Fiddle

After selecting SQL Fiddle, you'll get to see the following window

SQL Fiddle

And, that's it.

Known limitations:

1) Currently compatible with only MySQL database.
2) Not tested with complex queries.

TODO:

1) Add icon.
2) Needs to Clean-up junk HTML, CSS, JS and PHP code.
3) Add support for other SuiteCRM supported database also.