Neevo Public API
  • Namespace
  • Class
  • Tree

Namespaces

  • Neevo
    • Cache
    • Drivers
    • Nette
  • PHP

Classes

  • BaseStatement
  • Connection
  • Literal
  • Manager
  • Parser
  • Result
  • ResultIterator
  • Row
  • Statement

Interfaces

  • DriverInterface
  • ObservableInterface
  • ObserverInterface

Exceptions

  • DriverException
  • ImplementationException
  • NeevoException

Class Statement

Class for data manipulation statements (INSERT, UPDATE, DELETE)

Neevo\BaseStatement implements Neevo\ObservableInterface
Extended by Neevo\Statement
Namespace: Neevo
Author: Smasty
Located at Neevo/Statement.php

Methods summary

public static Neevo\Statement
# createUpdate( Neevo\Connection $connection, string $table, array|Traversable $data )

Creates UPDATE statement.

Creates UPDATE statement.

Parameters

$connection
Neevo\Connection
$connection
$table
string
$table
$data
array|Traversable
$data

Returns

Neevo\Statement
fluent interface
public static Neevo\Statement
# createInsert( Neevo\Connection $connection, string $table, array|Traversable $values )

Creates INSERT statement.

Creates INSERT statement.

Parameters

$connection
Neevo\Connection
$connection
$table
string
$table
$values
array|Traversable
$values

Returns

Neevo\Statement
fluent interface
public static Neevo\Statement
# createDelete( Neevo\Connection $connection, string $table )

Creates DELETE statement.

Creates DELETE statement.

Parameters

$connection
Neevo\Connection
$connection
$table
string
$table

Returns

Neevo\Statement
fluent interface
public resource|boolean
# run( )

Performs the statement.

Performs the statement.

Returns

resource|boolean

Overrides

Neevo\BaseStatement::run
public integer|boolean
# insertId( )

Returns the ID generated in the last INSERT statement.

Returns the ID generated in the last INSERT statement.

Returns

integer|boolean

Throws

Neevo\NeevoException
on non-INSERT statements.
public integer
# affectedRows( )

Returns the number of rows affected by the statement.

Returns the number of rows affected by the statement.

Returns

integer
public array
# getValues( )

Returns the values of statement.

Returns the values of statement.

Returns

array
public
# resetState( )

Resets the state of the statement.

Resets the state of the statement.

Overrides

Neevo\BaseStatement::resetState

Methods inherited from Neevo\BaseStatement

__clone(), __construct(), __toString(), attachObserver(), detachObserver(), dump(), exec(), getConditions(), getConnection(), getLimit(), getPrimaryKey(), getSorting(), getTable(), getTime(), getType(), hasCircularReferences(), isPerformed(), limit(), notifyObservers(), order(), rand(), validateConditions(), where()

Magic methods summary

Magic methods inherited from Neevo\BaseStatement

and(), else(), end(), if(), or()

Properties summary

protected array $values
#
protected integer $affectedRows
#

Properties inherited from Neevo\BaseStatement

$conditions, $connection, $eventTable, $limit, $observers, $offset, $performed, $sorting, $source, $subqueries, $time, $type

Neevo Public API API documentation generated by ApiGen 2.8.0