Announcement

  •  » Engine
  •  » How to add a database engine

#1 2009-12-07 22:28:46

nicolas
Former Piwigo Team
2004-12-30
1232

How to add a database engine

Hi all,

since [Subversion] r4433, you can know use mysql or postgresql for database engine in piwigo. But you can also add your prefered database engine.
To do that, just to step :
1) you have to write all functions contains in include/dblayer/functions_mysql.inc.php adapted to your database engine in a file named with your engine functions_ENGINE_NAME.inc.php in the same directory
2) update include/dblayer/dblayers.inc.php to configure that new engine. That file is needed for installation to propose database engine if they are available.

For example : database engine SQLite
Functions file : include/dblayer/functions_sqlite.inc.php
Modifications in include/dblayer/dblayers.inc.php:

Code:

$dblayers['pgsql'] = array('engine' => 'SQLite',
                           'function_available' => 'sqlite_open'
                             );

Offline

 
  •  » Engine
  •  » How to add a database engine

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact