SQLite-specific backup, import and creation methods

package Query
subpackage Drivers

 Methods

Enable calling driver methods

__call(string $method, array $args) 
Inherited

inherited_from \DB_Util::__call()

Parameters

$method

string

$args

array

Save a reference to the current connection object

__construct(object $conn) : void

Parameters

$conn

object

&$conn

Create an SQL backup file for the current database's data

backup_data(array $excluded) : string

Parameters

$excluded

array

Returns

string

Create an SQL backup file for the current database's structure

backup_structure() : string

Returns

string

Convenience public function to create a new table

create_table(string $name, array $columns, array $constraints, array $indexes) : string

Parameters

$name

string

//Name of the table

$columns

array

//columns as straight array and/or column => type pairs

$constraints

array

// column => constraint pairs

$indexes

array

// column => index pairs

Returns

string

SQL to drop the specified table

delete_table(string $name) : string

Parameters

$name

string

Returns

string

 Properties

 

Reference to the current connection object

$conn 
Inherited

inherited_from \DB_Util::$$conn