$_params
$_params : array
Hash containing connection parameters.
The Beatnik_Driver_sql class implements a SQL driver for managing DNS records in the PowerDNS generic SQL driver. The PowerDNS generic SQL driver aims to support MySQL, PostgreSQL, SQLite and Oracle. This driver attempts to do the same as long as the default queries are used.
Copyright 2008-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
recordExists(array $record, $rectype) : boolean
Try to determinate if the autogenerated record already exits. This method may be overridden in the backend driver for performance or other reasons.
array | $record | record to check |
$rectype |
if records exits or or not
saveRecord(array $info) : mixed
Saves a record fo the configured driver and checks/sets needCommit() Also first checks to ensure permission to save record is available.
array | $info | Data to be passed to backend driver for storage |
True on success, PEAR::Error on error
factory(string $driver = null, array $params = null) : mixed
Attempts to return a concrete Beatnik_Driver instance based on $driver.
string | $driver | The type of the concrete Beatnik_Driver subclass to return. The class name is based on the storage driver ($driver). The code is dynamically included. |
array | $params | (optional) A hash containing any additional configuration or connection parameters a subclass might need. |
The newly created concrete Beatnik_Driver instance, or false on an error.