Enabling ezpublish with an Apache Derby database

Author Message

Jeff Levitt

Friday 05 August 2005 2:39:43 pm

Hi,

I am interested in using an Apache Derby database (open source java database) instead of MySQL with EzPublish. The first thing I did was to modify the kernel_schema.sql statements to work with Derby syntax. That now works, but I don't know where to begin in terms of pointing EZPublish to my Derby database. I've set up my Windows environment so that PHP and Apache HTTP server both work with my Derby database, which is registered via a DB2 ODBC Lite client.

Do I need to create an extension, and if so, can someone explain what it is I need to do?

Lazaro Ferreira

Saturday 06 August 2005 4:26:03 am

Hi,

I think you have to implement an EZPublish DB interface for Derby (assuming Derby is similar to MySQL and PostgreSQL , I mean a RDBSQL Server ) :

Looking to EZP code you will find the implemented interfaces at :

lib/ezdb
lib/ezdbschema

Then at least you have to override settings at :
site.ini,dbschema.ini

In site.ini look at [DatabaseSettings] like [DatabaseImplementation],[ImplementationAlias]

In dbschema.ini, you will have to add support for your database in every related setting

Last, I have never implemented a DB interface in EZP, but I think EZP is designed to support new SQL Databases Server via a pluging architecture, like mentioned above, exist also Oracle and MS-SQL commercial plugings , and AFAIK EZ can develop additional plugings for you (commercial stuff)

Lazaro
http://www.mzbusiness.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 10:48:43
Script start
Timing: Jan 20 2025 10:48:43
Module start 'layout'
Timing: Jan 20 2025 10:48:43
Module start 'content'
Timing: Jan 20 2025 10:48:44
Module end 'content'
Timing: Jan 20 2025 10:48:44
Script end

Main resources:

Total runtime1.0897 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0125 589.2891152.6406
Module start 'layout' 0.01250.0033 741.929739.4766
Module start 'content' 0.01581.0723 781.4063488.1250
Module end 'content' 1.08810.0015 1,269.53138.1250
Script end 1.0896  1,277.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2956160.0002
Check MTime0.00130.1206160.0001
Mysql Total
Database connection0.00070.061110.0007
Mysqli_queries1.049896.3421540.0194
Looping result0.00050.0433520.0000
Template Total1.053696.720.5268
Template load0.00180.166320.0009
Template processing1.051896.523220.5259
Template load and register function0.00020.016910.0002
states
state_id_array0.00080.076310.0008
state_identifier_array0.00090.085320.0005
Override
Cache load0.00150.1373170.0001
Sytem overhead
Fetch class attribute can translate value0.00050.048920.0003
Fetch class attribute name0.00100.087920.0005
XML
Image XML parsing0.00040.032420.0002
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00070.0614100.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs