GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - smartcode-ch/QueryBrowser: Flex 4.5 based MySQL query browser

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
as3
as3
 
 
php
php
 
 
README.md
README.md
 
 
gpl.txt
gpl.txt
 
 
imdb.sql
imdb.sql
 
 
imdb.sql.tar.gz
imdb.sql.tar.gz
 
 

Repository files navigation

Flex 4.5 based MySQL Query Browser

Ever needed a simple, web based tool to query your SQL databases? This query browser not only offers the simple interface but also (limited) support to query large tables.

Data is displayed in a Flex 4 interface using the AsyncListView collection wrapper class for data paging.

Motivation

  • Provide people who start using SQL with a simple, inviting interface to improve their data retrieval skills.

  • Get grip on the new Flex 4 data paging features, combined with Robotlegs to tidy up the client side code and Zend AMF for remoting.

Requirements

  • PHP 5+ (5.2.4+ recommended by Zend)
  • MySQL
  • Flex 4+

Features

  • Not really feature rich, but give it a chance.

Database structure at a glance

  • Table names including number of rows
  • Field names with type information and a special icon for easy identification of the primary key

Very simple query builder

  • Click on table or field nodes to get the corresponding SQL Query

Query history

  • Run previous queries

Limited large table support

  • Run simple queries (including a primary) on tables with millions of rows.

Installation

1. Configure the Database

I suggest to create or use a user with just SELECT privileges to the database you wish to make accessible to the query browser.

2. Configure PHP access to the database

Set the user credentials for the database user in the php/DBHandler.php class.

class DBHandler {

    // Set database connection parameters
    const DB_HOST = 'localhost';
	const DB_NAME = 'imdb';
	const DB_USER = 'imdb';
	const DB_PASS = '*imdb*';

[...]

3. Configure Flex remoting

Set the remoting endpoint in the services-config.xml file.

<endpoint uri="http://showcase.to-fuse.ch/QueryBrowser/php/" class="flex.messaging.endpoints.AMFEndpoint"/> 

There is an optional configuration parameter found in class ch.tofuse.querybrowser.config.QueryRemoteConfig to adjust the (data) page size.

public static const DATA_PAGE_SIZE:int = 500;

Limitations

  • Data paging is getting really slow with complex queries (without primary key) and large result sets
  • Queries on tables with non-consecutive primary keys is possible, and can be enabled calling the designated method (QueryBrowser->executeSimpleQueryNonConsecutive()). However, data paging performance is again really lousy.
  • ... and many more.

More

  • Visit the blog post
  • Check out the demo.

About

Flex 4.5 based MySQL query browser

www.smartcode.ch/blog/flex/flex-4-5-mysql-query-browser/

Resources

Readme
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.