Class Delete
removes records from a PDO connected resource
-
DSchoenbauer\Sql\Command\Delete
implements
DSchoenbauer\Sql\Command\CommandInterface
uses
DSchoenbauer\Sql\Command\WhereTrait
Methods summary
public
|
|
public
boolean
|
#
execute( PDO $pdo )
takes the SQL and the data provided and executes the query with the data
takes the SQL and the data provided and executes the query with the data
Parameters
- $pdo
- a connection object that defines where the connection is to be executed
Returns
boolean TRUE on success or FALSE on failure.
Throws
Since
v1.0.0
Implementation of
|
public
array
|
#
getData( )
retrieves the data that is uses to fulfill the requirements of a prepared
statement
retrieves the data that is uses to fulfill the requirements of a prepared
statement
Returns
array a single level associative array containing keys that
represent the fields and values that represent items to fulfill the
requirements of a prepared statement
Since
v1.0.0
Implementation of
|
public
string
|
#
getSql( )
Generates a SQL statement ready to be prepared for execution with the intent of removing data
Generates a SQL statement ready to be prepared for execution with the intent of removing data
Returns
string a string that represents a delete statement ready to be prepared by PDO
Since
v1.0.0
Implementation of
|
public
string
|
#
getTable( )
retrieves the table with which you wish to remove from
retrieves the table with which you wish to remove from
Returns
string table with which you wish to remove from
Since
v1.0.0
|
public
DSchoenbauer\Sql\Command\Delete
|
#
setTable( string $table )
defines a table with which you wish to remove from
defines a table with which you wish to remove from
Parameters
- $table
- table with which you wish to remove from
Returns
Since
v1.0.0
|