Sha256: 635a2c57c8f45be09e05a5457b1bf2e70412aac7f9c6985580844d1501e63f7f
Contents?: true
Size: 582 Bytes
Versions: 2
Compression:
Stored size: 582 Bytes
Contents
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Table/Column autocomplete in SQL editors * * @package PhpMyAdmin */ require_once 'libraries/common.inc.php'; $db = isset($_POST['db']) ? $_POST['db'] : $GLOBALS['db']; $sql_autocomplete = array(); if ($db) { $tableNames = $GLOBALS['dbi']->getTables($db); foreach ($tableNames as $tableName) { $sql_autocomplete[$tableName] = $GLOBALS['dbi']->getColumns( $db, $tableName ); } } $response = PMA_Response::getInstance(); $response->addJSON("tables", json_encode($sql_autocomplete));
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simpletool-0.0.3 | lib/support/phpmyadmin/phpmyadmin/db_sql_autocomplete.php |
simpletool-0.0.2 | lib/support/phpmyadmin/phpmyadmin/db_sql_autocomplete.php |