SQL Support in Mozilla
Mozilla's SQL Support allows applications to directly connect to SQL databases. A web application no longer needs to pass information through a scripting language, such as Perl or Python, in order to receive information it can use. The removal of the layer seperating applications and data simplifies the job of the programmer.
Download/Install Mozilla SQL Support
All packages have been moved to Mozilla Update
Get the Source
The code is checked into the mozilla/extensions/sql directory.
Build it
Run the following commands to build SQL support into Mozilla.
-
configure --enable-extensions=default,sql
-
export MOZ_ENABLE_PGSQL=1
-
export MOZ_PGSQL_INCLUDES=Your PGSQL directory/include
-
export MOZ_PGSQL_LIBS=Your PGSQL directory/lib
- Build Mozilla as you normally would
Example code
There is a test app checked into the mozilla/extensions/sql/sqltest
directory.
Testing
Run the test application by loading it in the browser or running with the -chrome command line option set to chrome://sqltest/content/.
Feedback
File a bugzilla report, in the "SQL" component. Be sure to read the bug writing guidelines so you can understand the process of filing a bug.
Links
- Remote Application Development with Mozilla by Brian King and Myk Melez
- Native Database Support by Jan Varga
Contacts
Development: Jan Varga
Quality Assurance: Owen Marshall