Overview

Namespaces

  • Neevo
    • Cache
    • Drivers
    • Nette
  • PHP

Classes

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

Interfaces

  • ICache
  • IDriver
  • IObservable
  • IObserver

Exceptions

  • DriverException
  • ImplementationException
  • NeevoException
  • Overview
  • Namespace
  • Class
  • Tree

Class Statement

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

Neevo\BaseStatement implements Neevo\IObservable
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 )

Create UPDATE statement.

Create UPDATE statement.

Parameters

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

Returns

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

Create INSERT statement.

Create INSERT statement.

Parameters

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

Returns

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

Create DELETE statement.

Create DELETE statement.

Parameters

$connection
Neevo\Connection
$table
string

Returns

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

Perform the statement.

Perform the statement.

Returns

resource|boolean
public integer|false
# insertId( )

Get the ID generated in the last INSERT statement.

Get the ID generated in the last INSERT statement.

Returns

integer|false

Throws

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

Get the number of rows affected by the statement.

Get the number of rows affected by the statement.

Returns

integer
public array
# getValues( )

Get values of statement.

Get values of statement.

Returns

array
public
# resetState( )

Reset state of the statement.

Reset state of the statement.

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()
Properties summary
protected array $values array()
#
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.6.1