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

Beta Version 0.1

SQL Fiddle is a plugin for SugarCRM

This module provides SQL Editor functionality in SugarCRM.
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.

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) Compatibility with databases other than MySQL has not been tested.
2) Not tested with complex queries.

TODO:

1) Remove Delete access.
2) Add icon.
3) Needs to handle scenarios, where results from query not returned.
4) Needs to Clean-up junk HTML, CSS, JS and PHP code.

By:

Sohan U. S. Tirpude

mynameischangezkhan@gmail.com

 

Keep up to date on the latest additions

We'll send you an email every month with handpicked add-ons, reviews, tricks and tips. Don't worry, we hate spam as much as you do.