perform sql queries
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 2449
Practical Query Analyzer 1.6
Practical Query Analyzer produces HTML reports on query statistics. more>>
Practical Query Analyzer produces HTML reports on the most frequent queries, slowest queries, queries by type (select/insert/update/delete), and more for both PostgreSQL and MySQL log files.
<<less Download (0.05MB)
Added: 2005-11-28 License: BSD License Price:
1428 downloads
SQLitepp
SQLitepp is a multilanguage object oriented wrapper to the sqlite library. more>>
SQLitepp is a C/C++/Python wrapper to sqlite library for database management. It implements an object oriented way to manipulate the database in every supported language.
SQLitepp supports selfupdatable queries and a straight SQL code query system without using strange things for querying the database, letting you manipulate it directly in SQL but also exposing simple object oriented methods to manipulate the result of the queries and updating them.
Python EXAMPLE:
db = SQLDatabase("database.db")
q = db.query("Tablename", "SELECT Name,Id FROM %t")
if len(q):
tuple1 = q[0]
tuple1["Name"] = "Foobar"
tuple1.commit()
del db
C++ EXAMPLE:
SQLDatabase db("database.db");
SQLQuery *q = db.query("Tablename", "SELECT Name,Id FROM %t");
if(q->numberOfTuples()) {
SQLRow *tuple1 = q->getRow(0);
tuple1->set("Name", "Foobar");
tuple1->commit();
}
delete q;
C EXAMPLE:
void *db = new_SQLDatabase("database.db");
void *q = SQLDatabase_query(db, "Tablename", "SELECT Name,Id FROM %t");
if(SQLQuery_numberOfTuples(q)) {
void *tuple1 = SQLQuery_getRow(q, 0);
SQLRow_set(tuple1, "Name", "Foobar");
SQLRow_commit(tuple1);
}
delete_SQLQuery(q);
delete_SQLDatabase(db);
<<lessSQLitepp supports selfupdatable queries and a straight SQL code query system without using strange things for querying the database, letting you manipulate it directly in SQL but also exposing simple object oriented methods to manipulate the result of the queries and updating them.
Python EXAMPLE:
db = SQLDatabase("database.db")
q = db.query("Tablename", "SELECT Name,Id FROM %t")
if len(q):
tuple1 = q[0]
tuple1["Name"] = "Foobar"
tuple1.commit()
del db
C++ EXAMPLE:
SQLDatabase db("database.db");
SQLQuery *q = db.query("Tablename", "SELECT Name,Id FROM %t");
if(q->numberOfTuples()) {
SQLRow *tuple1 = q->getRow(0);
tuple1->set("Name", "Foobar");
tuple1->commit();
}
delete q;
C EXAMPLE:
void *db = new_SQLDatabase("database.db");
void *q = SQLDatabase_query(db, "Tablename", "SELECT Name,Id FROM %t");
if(SQLQuery_numberOfTuples(q)) {
void *tuple1 = SQLQuery_getRow(q, 0);
SQLRow_set(tuple1, "Name", "Foobar");
SQLRow_commit(tuple1);
}
delete_SQLQuery(q);
delete_SQLDatabase(db);
Download (0.019MB)
Added: 2005-09-26 License: LGPL (GNU Lesser General Public License) Price:
1489 downloads
JoSQL 1.8
JoSQL (SQL for Java Objects) provides the ability for a developer to apply a SQL statement to a collection of Java Objects. more>>
JoSQL (SQL for Java Objects) provides the ability for a developer to apply a SQL statement to a collection of Java Objects.
JoSQL provides the ability to search, order and group ANY Java objects and should be applied when you want to perform SQL-like queries on a collection of Java Objects.
Example:
// Get a list of java.io.File objects.
List myObjs = getMyObjects ();
// Create a new Query.
Query q = new Query ();
// Parse the SQL you are going to use, it is assumed here that
// "myObjs" contains instances of "java.io.File".
q.parse ("SELECT name,length " +
"FROM java.io.File " +
"WHERE fileExtension (name) = :fileExt " +
"ORDER BY length DESC, name " +
"EXECUTE ON RESULTS avg (:_allobjs, length) avgLength");
// Set the bind variable "fileExt".
q.setVariable ("fileExt", "java");
// Execute the query.
QueryResults qr = q.execute (myObjs);
// Get the average length, this is a save value, the result
// of executing the call "avg (:_allobjs, length)", it is saved against
// key: "avgLength".
Map saveValues = qr.getSaveValues ();
Number avg = (Number) saveValues.get ("avgLength");
// Cycle over the results.
List res = qr.getResults ();
for (int i = 0; i < res.size (); i++)
{
// This time there is a List for each row, index 0 holds the name of
// the file that matched, index 1 holds the length.
List r = (List) res.get (i);
System.out.println ("NAME: " + r.get (0));
System.out.println ("LENGTH: " + r.get (1) + ", AVG: " + avg);
}
Enhancements:
- This release focuses on bug fixes.
<<lessJoSQL provides the ability to search, order and group ANY Java objects and should be applied when you want to perform SQL-like queries on a collection of Java Objects.
Example:
// Get a list of java.io.File objects.
List myObjs = getMyObjects ();
// Create a new Query.
Query q = new Query ();
// Parse the SQL you are going to use, it is assumed here that
// "myObjs" contains instances of "java.io.File".
q.parse ("SELECT name,length " +
"FROM java.io.File " +
"WHERE fileExtension (name) = :fileExt " +
"ORDER BY length DESC, name " +
"EXECUTE ON RESULTS avg (:_allobjs, length) avgLength");
// Set the bind variable "fileExt".
q.setVariable ("fileExt", "java");
// Execute the query.
QueryResults qr = q.execute (myObjs);
// Get the average length, this is a save value, the result
// of executing the call "avg (:_allobjs, length)", it is saved against
// key: "avgLength".
Map saveValues = qr.getSaveValues ();
Number avg = (Number) saveValues.get ("avgLength");
// Cycle over the results.
List res = qr.getResults ();
for (int i = 0; i < res.size (); i++)
{
// This time there is a List for each row, index 0 holds the name of
// the file that matched, index 1 holds the length.
List r = (List) res.get (i);
System.out.println ("NAME: " + r.get (0));
System.out.println ("LENGTH: " + r.get (1) + ", AVG: " + avg);
}
Enhancements:
- This release focuses on bug fixes.
Download (0.24MB)
Added: 2007-05-30 License: The Apache License 2.0 Price:
880 downloads
PgWorksheet 1.8
PgWorksheet is a simple GUI frontend to PostgreSQL for executing SQL queries and psql commands. more>>
PgWorksheet is a simple GUI frontend to PostgreSQL for executing SQL queries and psql commands without using the psql command line tool.
PgWorksheet allow you to execute SQL queries and psql commands against a PostgreSQL database with a GUI. The UI have been designed to be extremly simple and easy to use.
<<lessPgWorksheet allow you to execute SQL queries and psql commands against a PostgreSQL database with a GUI. The UI have been designed to be extremly simple and easy to use.
Download (0.17MB)
Added: 2006-01-10 License: GPL (GNU General Public License) Price:
1383 downloads
SQL::Amazon::UserGuide 0.10
SQL::Amazon::UserGuide is a Perl module with user Guide for DBD/SQL::Amazon. more>>
SQL::Amazon::UserGuide is a Perl module with user Guide for DBD/SQL::Amazon.
SYNOPSIS
#
# create the parser, passing in the current Amazon metadata
#
my $parser = SQL::Amazon::Parser->new(%attrs);
#
# parse a SQL statement, returning a SQL::Amazon::Statement
#
my $stmt = $parser->parse($sql_stmt)
or die "Parse failed: " . $parser->errstr;
#
# evaluate the parse tree, using an evaluation object
# for driver specific evaluation
# returns either a scalar rowcount for write operations,
# or a SQL::Amazon::Table object for SELECT
# or undef on error
#
my $results = $stmt->execute($params)
or die "Evaluation failed: " . $stmt->errstr;
SQL::Amazon provides the various components required by DBD::Amazon http://www.presicient.com/dbdamzn to query the Amazon E-Commerce Service 4.0 aka ECS using SQL.
Be advised this is ALPHA release software.
The suite includes the following components:
SQL::Amazon::Parser
provides SQL parsing and query plan generation. Implemented as a subclass of SQL::Parser, part of the SQL::Statement bundle.
SQL::Amazon::Statement
provides SQL query plan execution. Implemented as a subclass of SQL::Statement.
SQL::Amazon::Functions
provides SQL::Amazon-specific predicate functions, including MATCHES ANY, MATCHES ALL, MATCHES TEXT, POWER_SEARCH, IN, and NOT IN.
SQL::Amazon::ReqFactory
provides a factory class for generating SQL::Amazon::Request::Request objects based on the predicates in a querys WHERE clause.
SQL::Amazon::Spool
provides a temporary storage object for intermediate results extracted from the base table cache objects. Acts as a SQL::Eval::Table object for SQL::Statement processing.
SQL::Amazon::StorageEngine
provides a global storage engine for managing data caching and retrieval.
SQL::Amazon::Request::Request
provides a base class for all ECS request objects, including numerous default method implementations for building and sending requests, and processing the responses into the base table cache objects.
SQL::Amazon::Request::ItemLookup
a subclass of SQL::Amazon::Request::Request for the ItemLookup request; also acts as a base class for the ItemSearch request.
SQL::Amazon::Request::ItemSearch
a subclass of SQL::Amazon::Request::ItemLookup for the ItemSearch request
SQL::Amazon::Tables::Table
provides a base class for table cache objects, including methods for data type conversion, keyed lookup, and cache management.
SQL::Amazon::Tables::< tablename >
provides table-specific implementations of the Table base class.
<<lessSYNOPSIS
#
# create the parser, passing in the current Amazon metadata
#
my $parser = SQL::Amazon::Parser->new(%attrs);
#
# parse a SQL statement, returning a SQL::Amazon::Statement
#
my $stmt = $parser->parse($sql_stmt)
or die "Parse failed: " . $parser->errstr;
#
# evaluate the parse tree, using an evaluation object
# for driver specific evaluation
# returns either a scalar rowcount for write operations,
# or a SQL::Amazon::Table object for SELECT
# or undef on error
#
my $results = $stmt->execute($params)
or die "Evaluation failed: " . $stmt->errstr;
SQL::Amazon provides the various components required by DBD::Amazon http://www.presicient.com/dbdamzn to query the Amazon E-Commerce Service 4.0 aka ECS using SQL.
Be advised this is ALPHA release software.
The suite includes the following components:
SQL::Amazon::Parser
provides SQL parsing and query plan generation. Implemented as a subclass of SQL::Parser, part of the SQL::Statement bundle.
SQL::Amazon::Statement
provides SQL query plan execution. Implemented as a subclass of SQL::Statement.
SQL::Amazon::Functions
provides SQL::Amazon-specific predicate functions, including MATCHES ANY, MATCHES ALL, MATCHES TEXT, POWER_SEARCH, IN, and NOT IN.
SQL::Amazon::ReqFactory
provides a factory class for generating SQL::Amazon::Request::Request objects based on the predicates in a querys WHERE clause.
SQL::Amazon::Spool
provides a temporary storage object for intermediate results extracted from the base table cache objects. Acts as a SQL::Eval::Table object for SQL::Statement processing.
SQL::Amazon::StorageEngine
provides a global storage engine for managing data caching and retrieval.
SQL::Amazon::Request::Request
provides a base class for all ECS request objects, including numerous default method implementations for building and sending requests, and processing the responses into the base table cache objects.
SQL::Amazon::Request::ItemLookup
a subclass of SQL::Amazon::Request::Request for the ItemLookup request; also acts as a base class for the ItemSearch request.
SQL::Amazon::Request::ItemSearch
a subclass of SQL::Amazon::Request::ItemLookup for the ItemSearch request
SQL::Amazon::Tables::Table
provides a base class for table cache objects, including methods for data type conversion, keyed lookup, and cache management.
SQL::Amazon::Tables::< tablename >
provides table-specific implementations of the Table base class.
Download (0.057MB)
Added: 2006-10-13 License: Perl Artistic License Price:
1106 downloads
JDBC SQL Profiler 0.3
JDBC SQL Profiler is a Swing-based GUI tool to recommend database index creation. more>>
JDBC SQL Profiler is a quickly hacked tool to do statistics on SELECT queries in order to know where it is most efficient to create indexes.
This small tool, released under an Apache-based license connects to the P6Spy JDBC logger and displays in real time the queries going to the database. It uses an integrated SQL parser to build statistics on the most accessed tables and columns and can generate SQL index creation files.
Other information is also gathered and displayed, such as the request time for a single request, for a class of request, and for all the requests. Sorting may be done on these views to detect database problems efficiently.
This tool can be very useful when you have a big volume of queries that you need to analyze not one by one (meaning that the specific time isnt that much of interest), but rather when you want to know what "group" of queries is taking a lot of time, such as queries on the same tables and columns but with different query values. The integrated SQL parser (built with ANTLR) is used to analyze the incoming SELECT queries.
The Swing GUI was based on Apaches Log4J Chainsaw, but all the bugs are mine. Also contributors are welcome to test, make new suggestions, give their opinion and submit patches.
<<lessThis small tool, released under an Apache-based license connects to the P6Spy JDBC logger and displays in real time the queries going to the database. It uses an integrated SQL parser to build statistics on the most accessed tables and columns and can generate SQL index creation files.
Other information is also gathered and displayed, such as the request time for a single request, for a class of request, and for all the requests. Sorting may be done on these views to detect database problems efficiently.
This tool can be very useful when you have a big volume of queries that you need to analyze not one by one (meaning that the specific time isnt that much of interest), but rather when you want to know what "group" of queries is taking a lot of time, such as queries on the same tables and columns but with different query values. The integrated SQL parser (built with ANTLR) is used to analyze the incoming SELECT queries.
The Swing GUI was based on Apaches Log4J Chainsaw, but all the bugs are mine. Also contributors are welcome to test, make new suggestions, give their opinion and submit patches.
Download (1.0MB)
Added: 2005-04-28 License: The Apache License Price:
1644 downloads

MySQL for Linux 6.0.0
MySQL - Multi-user and robust SQL database server more>> MySQL - Multi-user and robust SQL database server. The worlds most popular open source database
MySQL is a very fast, multi-user, multi-threaded and robust SQL (Structured Query Language) database server. The worlds most popular open source database.
MySQL is an attractive alternative to higher-cost, more complex database technology. Its award-winning speed, scalability and reliability make it the right choice for corporate IT departments, Web developers and packaged software vendors<<less
Download (67.68MB)
Added: 2009-04-05 License: Freeware Price: Free
204 downloads
Other version of MySQL for Linux
MySQL - Multi-user and robust SQL database server ... very fast, multi-user, multi-threaded and robust SQL (Structured Query Language) databaseLicense:Freeware
Java embedded SQL(unix) 1.08
Subset of SQL for specifying non-procedural queries for Java objects more>> Subset of SQL for specifying non-procedural queries for Java objects, index access based on T-Tree, parallel excecution of requests
JSQL is subset of SQL languages, which can be used to select objects instances according to selection condition. JSQL can be used for implementing personal minidatabase, as tool for dynamic compilation and execution of user requests. JSQL uses notation more popular for object-oriented programming then for relational database. Table rows are considered as object instances and the table - as class of these objects. Unlike SQL, JSQL is oriented on work with objects instead of SQL tuples. So the result of each query execution is a set of objects of one class. The main differences of JSQL from standard SQL are:
There are no joins of several tables and nested subqueries. Query always returns set of objects from one table.
Standard C types are used for atomic table columns.
There are no NULL values, except null references. I am completely agree with C.J. Date critics of three-value logic and his proposal to use default values instead.
Arrays can be used as record components. Special exists quantor is provided for locating element in arrays.
User methods can be defined for table records (objects) as well as for record components.
References between objects are supported including automatic support of inverse references.
As far as query language is deeply integrated with Java language, case sensitive mode is used for language identifiers as well as for keywords.
No implicit conversion of integer and floating types is done to string representation. If such conversion is need, it should be done explicitly.<<less
Download (166KB)
Added: 2009-04-02 License: Freeware Price: Free
204 downloads
Simple RSS Service 0.3
Simple RSS Service is a modular RSS feed generator. more>>
The Simple RSS Service (SRSSS) generates and serves RSS feeds through a common interface via CGI-enabled webservers. It uses modules to extract items for feeds from various sources, and has a virtual filesystem where feeds can be read by CGI-clients.
The package contains everything needed to start providing RSS feeds, including server and CGI programs, and has support for PostgreSQL, MySQL and MimerSQL.
Main features:
- Modular and clean design based on object oriented C++
- Resource-friendly functions that keeps the load down on web- and database-servers by only parsing data and generate new feeds when required, instead of at every request.
- Interface for run-time loading of modules for data-extraction
- A virtual filesystem stored in shared memory
- Feed extraction via CGI program for easy integration in any CGI-enabled webserver
- A trigger-system that allows external sources to trigger daemon software to fetch new updates
- Easy configuration via a configfiles
- Designed for easy integration towards SQL servers etc
- Support for NetBSD, FreeBSD, OpenBSD and Linux.
Modules:
These modules are currently available for RSS item extraction:
mod_pgsql
This module allows the RSS daemon (rssd) to extract items for RSS feeds from a PostgreSQL database. It can select an entire column as description field for the feed, or base it on a pre-formated string in which variables are replaced with values from columns returned in the SQL query.
This module also support triggering, where any client connected to the same database is able to trigger RSSD to fetch a new update via the SQL LISTEN and NOTIFY functions.
mod_mysql
This module integrates RSSD with the MySQL database, allowing it to produce RSS feeds based on any information stored in databases running on MySQL. The module allows the user to run just about any SQL query supported by the database to extract the needed information to create a feed.
Mod_mysql does also support pre-formated strings to generate the description for each RSS item it produces.
mod_mimersql
This module allows the RSS daemon to fetch items from the MimerSQL database.
The module allows the user to run just about any SQL query supported by the database to extract the needed information to create a feed.
Mod_mimersql does also support pre-formated strings to generate the description for each RSS item it produces.
mod_template
This is a template-module that can be used as a starting-point when developing new modules. It is usable, but does not really provide a usable feature.
<<lessThe package contains everything needed to start providing RSS feeds, including server and CGI programs, and has support for PostgreSQL, MySQL and MimerSQL.
Main features:
- Modular and clean design based on object oriented C++
- Resource-friendly functions that keeps the load down on web- and database-servers by only parsing data and generate new feeds when required, instead of at every request.
- Interface for run-time loading of modules for data-extraction
- A virtual filesystem stored in shared memory
- Feed extraction via CGI program for easy integration in any CGI-enabled webserver
- A trigger-system that allows external sources to trigger daemon software to fetch new updates
- Easy configuration via a configfiles
- Designed for easy integration towards SQL servers etc
- Support for NetBSD, FreeBSD, OpenBSD and Linux.
Modules:
These modules are currently available for RSS item extraction:
mod_pgsql
This module allows the RSS daemon (rssd) to extract items for RSS feeds from a PostgreSQL database. It can select an entire column as description field for the feed, or base it on a pre-formated string in which variables are replaced with values from columns returned in the SQL query.
This module also support triggering, where any client connected to the same database is able to trigger RSSD to fetch a new update via the SQL LISTEN and NOTIFY functions.
mod_mysql
This module integrates RSSD with the MySQL database, allowing it to produce RSS feeds based on any information stored in databases running on MySQL. The module allows the user to run just about any SQL query supported by the database to extract the needed information to create a feed.
Mod_mysql does also support pre-formated strings to generate the description for each RSS item it produces.
mod_mimersql
This module allows the RSS daemon to fetch items from the MimerSQL database.
The module allows the user to run just about any SQL query supported by the database to extract the needed information to create a feed.
Mod_mimersql does also support pre-formated strings to generate the description for each RSS item it produces.
mod_template
This is a template-module that can be used as a starting-point when developing new modules. It is usable, but does not really provide a usable feature.
Download (0.47MB)
Added: 2005-04-26 License: BSD License Price:
1641 downloads
Perlbug::Interface::Web 2.93
Perlbug::Interface::Web is a web interface to perlbug database. more>>
Perlbug::Interface::Web is a web interface to perlbug database.
SYNOPSIS
my $o_web = Perlbug::Interface::Web->new;
print $o_web->top;
print $o_web->request(help);
print $o_web->links;
METHODS
new
Create new Perlbug::Interface::Web object.
my $web = Perlbug::Interface::Web->new;
setup
Setup Perlbug::Interface::Web
$o_web->setup($cgi);
check_user
Access authentication via http, we just prime ourselves with data from the db as well.
menus
Return menu of system, designed for vertical format. Wraps logo, title and links
print $o_web->menus();
logo
Return logo of system with href=hard_wired_url
print $o_web->logo();
get_title
Return title of current page
print $o_web->get_title();
summary
Return summary of open/closed bugs
print $o_web->summary();
links
Return links of system, with adminfaq inserted if appropriate, configured links and object search forms.
print $o_web->links();
index
Display the index results here...
get_request
Return the req value for this request
my $req = $self->get_request;
set_command
Set the command type for the rest of the process, based on the input and operation
my $cmd = $o_web->set_command($req);
commands
Return command menu buttons for request given
print $o_web->commands($req);
switch
Return appropriate method call for request(else index), using internal CGI object
my $method = $o_web->switch([$req]); # set $method=($call|index)
start
Return appropriate start header data for web request, includes start table.
print $o_web->start();
form
Return form with appropriate name and target etc.
print $o_web->form(menus);
top
Return consistent top of page.
print $o_web->top($req, $cmd);
request
Handle all web requests (internal print)
$o_web->request($call);
target2file
Return appropriate dir/file.ext for given target string
my $filename = $o_base->target2file(header);
# -> /home/richard/web/header.html
finish
Return appropriate finishing html
Varies with framed, includes table finish
print $o_web->finish($req);
overview
Wrapper for doo method
graph
Display pie or mixed graph for groups of bugs etc., mixed to come.
date
Wrapper for search by date access
create
Wrapper for object creation
$o_web->create($obj, %data);
object_handler
Wrapper for object access: no ids = search form
$o_web->object_handler($me_thod, $oid); # o_cgi comes from the heavens
hist
History mechanism for bugs and users.
Move formatting to Formatter::history !!!
headers
Headers for all objects (message, note, ...) by id
$o_web->headers(patch, $id);
bidmid
Wrapper for bugid and messageid access
spec
Returns specifications for the Perlbug system.
$dynamic =~ s/ />/g;
$dynamic =~ s/b(http:.+?perlbug.cgi)b/$1/gi;
$dynamic =~ s/b([ |&.t;]+@.+?.(?:com|org|net|edu))b/$1/gi;
webhelp
Web based help for perlbug.
print $web->webhelp;
mailhelp
Web based mail help for perlbug.
print $web->mailhelp;
delete
Wrapper for delete access
sql
Open field sql query processor
todo
To do list, may be appended to
adminfaq
adminFAQ
web_query
Form bugid search web query results
# results - dont map to query() unless Base::query modified
search
Construct search form
with chosen params as defaults...
update
For all application objects, wraps to object_handler
$o_web->update(); # args ignored here for passing purposes
current_buttons
Get and set array of relevant buttons by context key
my @buttons = $o_web->current_buttons(search update reset, scalar(@uids), [$colspan]);
case
Handle case sensitivity from web search form.
format_query
Produce SQL query for bug search from cgi query.
Can be optimised somewhat ...
my $query = $web->format_query;
wildcard
Convert * into % for sqlquery
my $string = $self->wildcard(5.*);
tenify
Create range of links to split (by tens or more) bugids from web query result.
$self->tenify(@_bids, bug, 7); # in chunks of 7
<<lessSYNOPSIS
my $o_web = Perlbug::Interface::Web->new;
print $o_web->top;
print $o_web->request(help);
print $o_web->links;
METHODS
new
Create new Perlbug::Interface::Web object.
my $web = Perlbug::Interface::Web->new;
setup
Setup Perlbug::Interface::Web
$o_web->setup($cgi);
check_user
Access authentication via http, we just prime ourselves with data from the db as well.
menus
Return menu of system, designed for vertical format. Wraps logo, title and links
print $o_web->menus();
logo
Return logo of system with href=hard_wired_url
print $o_web->logo();
get_title
Return title of current page
print $o_web->get_title();
summary
Return summary of open/closed bugs
print $o_web->summary();
links
Return links of system, with adminfaq inserted if appropriate, configured links and object search forms.
print $o_web->links();
index
Display the index results here...
get_request
Return the req value for this request
my $req = $self->get_request;
set_command
Set the command type for the rest of the process, based on the input and operation
my $cmd = $o_web->set_command($req);
commands
Return command menu buttons for request given
print $o_web->commands($req);
switch
Return appropriate method call for request(else index), using internal CGI object
my $method = $o_web->switch([$req]); # set $method=($call|index)
start
Return appropriate start header data for web request, includes start table.
print $o_web->start();
form
Return form with appropriate name and target etc.
print $o_web->form(menus);
top
Return consistent top of page.
print $o_web->top($req, $cmd);
request
Handle all web requests (internal print)
$o_web->request($call);
target2file
Return appropriate dir/file.ext for given target string
my $filename = $o_base->target2file(header);
# -> /home/richard/web/header.html
finish
Return appropriate finishing html
Varies with framed, includes table finish
print $o_web->finish($req);
overview
Wrapper for doo method
graph
Display pie or mixed graph for groups of bugs etc., mixed to come.
date
Wrapper for search by date access
create
Wrapper for object creation
$o_web->create($obj, %data);
object_handler
Wrapper for object access: no ids = search form
$o_web->object_handler($me_thod, $oid); # o_cgi comes from the heavens
hist
History mechanism for bugs and users.
Move formatting to Formatter::history !!!
headers
Headers for all objects (message, note, ...) by id
$o_web->headers(patch, $id);
bidmid
Wrapper for bugid and messageid access
spec
Returns specifications for the Perlbug system.
$dynamic =~ s/ />/g;
$dynamic =~ s/b(http:.+?perlbug.cgi)b/$1/gi;
$dynamic =~ s/b([ |&.t;]+@.+?.(?:com|org|net|edu))b/$1/gi;
webhelp
Web based help for perlbug.
print $web->webhelp;
mailhelp
Web based mail help for perlbug.
print $web->mailhelp;
delete
Wrapper for delete access
sql
Open field sql query processor
todo
To do list, may be appended to
adminfaq
adminFAQ
web_query
Form bugid search web query results
# results - dont map to query() unless Base::query modified
search
Construct search form
with chosen params as defaults...
update
For all application objects, wraps to object_handler
$o_web->update(); # args ignored here for passing purposes
current_buttons
Get and set array of relevant buttons by context key
my @buttons = $o_web->current_buttons(search update reset, scalar(@uids), [$colspan]);
case
Handle case sensitivity from web search form.
format_query
Produce SQL query for bug search from cgi query.
Can be optimised somewhat ...
my $query = $web->format_query;
wildcard
Convert * into % for sqlquery
my $string = $self->wildcard(5.*);
tenify
Create range of links to split (by tens or more) bugids from web query result.
$self->tenify(@_bids, bug, 7); # in chunks of 7
Download (0.49MB)
Added: 2007-07-31 License: Perl Artistic License Price:
816 downloads
SafeSQL 2.2
SafeSQL project is an SQL query processer to automate the tedious tasks of syntax testing. more>>
SafeSQL project is an SQL query processer to automate the tedious tasks of syntax testing, injection attack-proofing, dropping parts of queries and other misc features. It has only been tested with MySQL syntax, but any ANSI SQL-92 compliant db library should work OK.
SYNOPSIS:
require SafeSQL.class.php;
// dummy up a variable with a single quote in it
$section_name = "freds place";
// run the query through SafeSQL
$safesql =& new SafeSQL_MySQL;
$query_string = $safesql->query("select * from sections
where Section_Name = %s", array($section_name));
echo $query_string;
OUTPUT:
select * from sections where Section_Name = freds place
// $query_string is now safe to pass to your SQL library
Enhancements:
- This release adds %n and %N for handling quoted and (non-quoted) NULL values.
<<lessSYNOPSIS:
require SafeSQL.class.php;
// dummy up a variable with a single quote in it
$section_name = "freds place";
// run the query through SafeSQL
$safesql =& new SafeSQL_MySQL;
$query_string = $safesql->query("select * from sections
where Section_Name = %s", array($section_name));
echo $query_string;
OUTPUT:
select * from sections where Section_Name = freds place
// $query_string is now safe to pass to your SQL library
Enhancements:
- This release adds %n and %N for handling quoted and (non-quoted) NULL values.
Download (0.007MB)
Added: 2007-04-06 License: LGPL (GNU Lesser General Public License) Price:
933 downloads
htmlSQL 0.5
htmlSQL is a PHP class to query the web by an SQL like language. more>>
htmlSQL is a PHP class to query the web by an SQL like language. htmlSQL is a experimental PHP class which allows you to access HTML values by an SQL like syntax.
This means that you dont have to write complex functions (regular expressions) to extract specific values.
How to use
Just include the "snoopy.class.php" and the "htmlsql.class.php" files into your PHP scripts and look at the examples (examples/) to get an idea of how to use the htmlSQL class. It should be very simple.
Background & Idea
I had this idea while extracting some data from a website. As I realized that the algorithms and functions to extract links and other tags are often the same - I had the idea to combine all functions to an universal usable class. While drinking a coffee and thinking on that problem, I thought it would be cool to access HTML elements by using SQL. So I started creating this class...
Warning!
The eval() function is used for the WHERE statement. Make sure that all user data is checked and filtered against malicious PHP code. Never trust user input!
<<lessThis means that you dont have to write complex functions (regular expressions) to extract specific values.
How to use
Just include the "snoopy.class.php" and the "htmlsql.class.php" files into your PHP scripts and look at the examples (examples/) to get an idea of how to use the htmlSQL class. It should be very simple.
Background & Idea
I had this idea while extracting some data from a website. As I realized that the algorithms and functions to extract links and other tags are often the same - I had the idea to combine all functions to an universal usable class. While drinking a coffee and thinking on that problem, I thought it would be cool to access HTML elements by using SQL. So I started creating this class...
Warning!
The eval() function is used for the WHERE statement. Make sure that all user data is checked and filtered against malicious PHP code. Never trust user input!
Download (0.041MB)
Added: 2006-05-09 License: BSD License Price:
1264 downloads
Rose::DB::Object::QueryBuilder 0.764
Rose::DB::Object::QueryBuilder is a Perl module that can build SQL queries on behalf of Rose::DB::Object::Manager. more>>
Rose::DB::Object::QueryBuilder is a Perl module that can build SQL queries on behalf of Rose::DB::Object::Manager.
SYNOPSIS
use Rose::DB::Object::QueryBuilder qw(build_select);
# Build simple query
$sql = build_select
(
dbh => $dbh,
select => COUNT(*),
tables => [ articles ],
columns => { articles => [ qw(id category type title date) ] },
query =>
[
category => [ sports, science ],
type => news,
title => { like => [ %million%,
%resident% ] },
],
query_is_sql => 1);
$sth = $dbh->prepare($sql);
$dbh->execute;
$count = $sth->fetchrow_array;
...
# Return query with placeholders, plus bind values
($sql, $bind) = build_select
(
dbh => $dbh,
tables => [ articles ],
columns => { articles => [ qw(id category type title date) ] },
query =>
[
category => [ sports, science ],
type => news,
title => { like => [ %million%,
%resident% ] },
],
query_is_sql => 1,
sort_by => title DESC, category,
limit => 5);
$sth = $dbh->prepare($sql);
$dbh->execute(@$bind);
while($row = $sth->fetchrow_hashref) { ... }
...
# Coerce query values into the right format
($sql, $bind) = build_select
(
db => $db,
tables => [ articles ],
columns => { articles => [ qw(id category type title date) ] },
classes => { articles => Article },
query =>
[
type => news,
date => { lt => now },
date => { gt => DateTime->new(...) },
],
sort_by => title DESC, category,
limit => 5);
$sth = $dbh->prepare($sql);
$dbh->execute(@$bind);
<<lessSYNOPSIS
use Rose::DB::Object::QueryBuilder qw(build_select);
# Build simple query
$sql = build_select
(
dbh => $dbh,
select => COUNT(*),
tables => [ articles ],
columns => { articles => [ qw(id category type title date) ] },
query =>
[
category => [ sports, science ],
type => news,
title => { like => [ %million%,
%resident% ] },
],
query_is_sql => 1);
$sth = $dbh->prepare($sql);
$dbh->execute;
$count = $sth->fetchrow_array;
...
# Return query with placeholders, plus bind values
($sql, $bind) = build_select
(
dbh => $dbh,
tables => [ articles ],
columns => { articles => [ qw(id category type title date) ] },
query =>
[
category => [ sports, science ],
type => news,
title => { like => [ %million%,
%resident% ] },
],
query_is_sql => 1,
sort_by => title DESC, category,
limit => 5);
$sth = $dbh->prepare($sql);
$dbh->execute(@$bind);
while($row = $sth->fetchrow_hashref) { ... }
...
# Coerce query values into the right format
($sql, $bind) = build_select
(
db => $db,
tables => [ articles ],
columns => { articles => [ qw(id category type title date) ] },
classes => { articles => Article },
query =>
[
type => news,
date => { lt => now },
date => { gt => DateTime->new(...) },
],
sort_by => title DESC, category,
limit => 5);
$sth = $dbh->prepare($sql);
$dbh->execute(@$bind);
Download (0.47MB)
Added: 2007-07-03 License: Perl Artistic License Price:
843 downloads
phpMysqlConnection 1.5.9
phpMysqlConnection provides a PHP class for handling MySQL database connections. more>>
phpMysqlConnection provides a PHP class for handling MySQL database connections.
phpMysqlConnection is an interface class to be used with the PHP programming language to help projects connect to a MySQL database server and perform queries.
The methods of this class prevent the programmer from having to memorize all the different steps needed to connect to the database, perform a query, and retrieve results.
Enhancements:
- A function to return XML-formatted data record sets from queries has been added.
<<lessphpMysqlConnection is an interface class to be used with the PHP programming language to help projects connect to a MySQL database server and perform queries.
The methods of this class prevent the programmer from having to memorize all the different steps needed to connect to the database, perform a query, and retrieve results.
Enhancements:
- A function to return XML-formatted data record sets from queries has been added.
Download (0.007MB)
Added: 2007-03-15 License: GPL (GNU General Public License) Price:
955 downloads
QtSQL Browser 0.85
QtSQL Browser is a generic GUI database browsing frontend. more>>
The purpose of this project is to provide a simple, generic GUI database browsing frontend. The tool is a very simple aggregation of the Qt database classes.
The database abstraction is provided by the Qt database drivers. So far, the drivers for PostgreSQL and MySQL have been found to work well.
In principle, there is no reason why ODBC drivers for popular databases such as Oracle, DB2, Informix as well as Firebird and SAP/DB shouldnt work via the Qt ODBC3 abstraction layer.
However, some preliminary tests with these have not been promising. It may be that the only way to get some of these working is to create a native Qt database driver. This is something Ill be looking into much later.
At the moment, it is only possible to build the system on Unix and similar systems. Since Trolltech have released a version of Qt for OSX under the GPL and have announced their intention to do likewise for Win32, it should be possible to provide ports for both of these platforms. For the moment though, I just provide the source.
Main features:
- Tree browser for databases and tables
- Display of table descriptions
- Display of table contents in main window
- Execution of ad-hoc SQL queries in the query tab
- Command line history in the query tab
- Retrieval of database connection details from XML config file
- Retrieval of other configuration parameters from XML config file
- Prompting for connection password
- Addition of new connections via GUI to the running application and the config file
- Display database views with a separate icon
- Create a connection name independent of the database name
- A "Test" button when creating a new connection
- Dynamically generate a list of available drivers
- Configuration via autoconf
- Fixed bug with executing updates/inserts twice
- Refreshing of a DB connection
- Deleting of connections via the GUI
- Editting of connections via the GUI
- Check for the existence of ~/.qtsql
- Creation of skeleton config file
- Auto saving/restoring of history
- Loading of queries
- Saving of results
- Keyboard shortcuts
<<lessThe database abstraction is provided by the Qt database drivers. So far, the drivers for PostgreSQL and MySQL have been found to work well.
In principle, there is no reason why ODBC drivers for popular databases such as Oracle, DB2, Informix as well as Firebird and SAP/DB shouldnt work via the Qt ODBC3 abstraction layer.
However, some preliminary tests with these have not been promising. It may be that the only way to get some of these working is to create a native Qt database driver. This is something Ill be looking into much later.
At the moment, it is only possible to build the system on Unix and similar systems. Since Trolltech have released a version of Qt for OSX under the GPL and have announced their intention to do likewise for Win32, it should be possible to provide ports for both of these platforms. For the moment though, I just provide the source.
Main features:
- Tree browser for databases and tables
- Display of table descriptions
- Display of table contents in main window
- Execution of ad-hoc SQL queries in the query tab
- Command line history in the query tab
- Retrieval of database connection details from XML config file
- Retrieval of other configuration parameters from XML config file
- Prompting for connection password
- Addition of new connections via GUI to the running application and the config file
- Display database views with a separate icon
- Create a connection name independent of the database name
- A "Test" button when creating a new connection
- Dynamically generate a list of available drivers
- Configuration via autoconf
- Fixed bug with executing updates/inserts twice
- Refreshing of a DB connection
- Deleting of connections via the GUI
- Editting of connections via the GUI
- Check for the existence of ~/.qtsql
- Creation of skeleton config file
- Auto saving/restoring of history
- Loading of queries
- Saving of results
- Keyboard shortcuts
Download (0.025MB)
Added: 2005-05-24 License: GPL (GNU General Public License) Price:
1619 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above perform sql queries search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed


