Skip to content

Commit

Permalink
Convert Turba_Driver_Sql to using Horde_Db
Browse files Browse the repository at this point in the history
Config file has changed - if non-Horde SQL DB used, it must be created
and passed into the 'sql' params value. By default, the Horde SQL DB is
used.
  • Loading branch information
slusarz committed Jan 12, 2011
1 parent bb67964 commit ed7122b
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 153 deletions.
15 changes: 8 additions & 7 deletions config/backends.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,14 @@
$cfgSources['localsql'] = array(
'title' => _("My Address Book"),
'type' => 'sql',
// The default connection details are pulled from the Horde-wide SQL
// connection configuration.
'params' => array_merge($GLOBALS['conf']['sql'], array('table' => 'turba_objects')),
// Using two tables as datasource.
// 'params' => array_merge($GLOBALS['conf']['sql'],
// array('table' => 'leaddetails LEFT JOIN leadaddress ON leaddetails.leadid = leadaddress.leadaddressid',
// 'filter' => 'leaddetails.converted = 0')),
'params' => array(
// The default connection details are pulled from the Horde-wide SQL
// connection configuration.
// To use another DB connection, you must define a Horde_Db_Adapter
// object here.
'sql' => false,
'table' => 'turba_objects'
),
'map' => array(
'__key' => 'object_id',
'__owner' => 'owner_id',
Expand Down
Loading

0 comments on commit ed7122b

Please sign in to comment.