Class Pastie_Driver_Sql
Pastie storage implementation for PHP's PEAR database abstraction layer.
Required values for $params:
'phptype' - The database type (e.g. 'pgsql', 'mysql', etc.). 'table' - The name of the foo table in 'database'. 'charset' - The database's internal charset.
Required by some database implementations:
'database' - The name of the database. 'hostspec' - The hostname of the database server. 'protocol' - The communication protocol ('tcp', 'unix', etc.). 'username' - The username with which to connect to the database. 'password' - The password associated with 'username'. 'options' - Additional options to pass to the database. 'tty' - The TTY on which to connect to the database. 'port' - The port on which to connect to the database.
The table structure can be created by the scripts/sql/pastie_foo.sql script.
Copyright 2007-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (BSD). If you did not receive this file, see http://www.fsf.org/copyleft/bsd.html.
- Pastie_Driver
- Pastie_Driver_Sql
public
|
|
public
|
|
public
array
|
|
public
|
factory(),
singleton()
|