Neevo Public API
  • Namespace
  • Class
  • Tree

Namespaces

  • Neevo
    • Nette
  • None
  • PHP

Classes

  • Neevo
  • NeevoBaseStmt
  • NeevoCacheFile
  • NeevoCacheMemcache
  • NeevoCacheMemory
  • NeevoCacheSession
  • NeevoConnection
  • NeevoDriverMySQL
  • NeevoDriverMySQLi
  • NeevoDriverPgSQL
  • NeevoDriverSQLite2
  • NeevoDriverSQLite3
  • NeevoLiteral
  • NeevoLoader
  • NeevoObserverMap
  • NeevoParser
  • NeevoResult
  • NeevoResultIterator
  • NeevoRow
  • NeevoStmt

Interfaces

  • INeevoCache
  • INeevoDriver
  • INeevoObservable
  • INeevoObserver

Exceptions

  • NeevoDriverException
  • NeevoException
  • NeevoImplementationException

Class NeevoStmt

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

NeevoBaseStmt implements INeevoObservable
Extended by NeevoStmt
Package: Neevo
Author: Martin Srank
Located at neevo/NeevoStmt.php

Methods summary

public static NeevoStmt
# createUpdate( NeevoConnection $connection, string $table, array|Traversable $data )

Create UPDATE statement.

Create UPDATE statement.

Parameters

$connection
NeevoConnection
$connection
$table
string
$table
$data
array|Traversable
$data

Returns

NeevoStmt
fluent interface
public static NeevoStmt
# createInsert( NeevoConnection $connection, string $table, array $values )

Create INSERT statement.

Create INSERT statement.

Parameters

$connection
NeevoConnection
$connection
$table
string
$table
$values
array
$values

Returns

NeevoStmt
fluent interface
public static NeevoStmt
# createDelete( NeevoConnection $connection, string $table )

Create DELETE statement.

Create DELETE statement.

Parameters

$connection
NeevoConnection
$connection
$table
string
$table

Returns

NeevoStmt
fluent interface
public resource|boolean
# run( )

Perform the statement.

Perform the statement.

Returns

resource|boolean

Overrides

NeevoBaseStmt::run
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

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.

Overrides

NeevoBaseStmt::resetState

Methods inherited from NeevoBaseStmt

__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 NeevoBaseStmt

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

Properties summary

protected array $values
#
protected integer $affectedRows
#

Properties inherited from NeevoBaseStmt

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

Neevo Public API API documentation generated by ApiGen 2.8.0