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 NeevoDriverMySQLi

Neevo MySQLi driver (PHP extension 'mysqli')

Driver configuration: - host => MySQL server name or address - port (int) => MySQL server port - socket - username - password - database => database to select - charset => Character encoding to set (defaults to utf8) - peristent (bool) => Try to find a persistent link - unbuffered (bool) => Sends query without fetching and buffering the result
- resource (instance of mysqli) => Existing MySQLi link - lazy, table_prefix... => see NeevoConnection

NeevoParser
Extended by NeevoDriverMySQLi implements INeevoDriver
Package: Neevo\Drivers
Author: Martin Srank
Located at neevo/drivers/mysqli.php

Methods summary

public
# __construct( NeevoBaseStmt $statement = null )

Check for required PHP extension.

Check for required PHP extension.

Parameters

$statement
NeevoBaseStmt
$statement

Throws

NeevoDriverException

Overrides

NeevoParser::__construct

Implementation of

INeevoDriver::__construct()
public
# connect( array $config )

Create connection to database.

Create connection to database.

Parameters

$config
array
$config Configuration options

Throws

NeevoException

Implementation of

INeevoDriver::connect()
public
# closeConnection( )

Close the connection.

Close the connection.

Implementation of

INeevoDriver::closeConnection()
public boolean
# freeResultSet( mysqli_result $resultSet )

Free memory used by given result set.

Free memory used by given result set.

Parameters

$resultSet
mysqli_result
$resultSet

Returns

boolean

Implementation of

INeevoDriver::freeResultSet()
public mysqli_result|boolean
# runQuery( string $queryString )

Execute given SQL statement.

Execute given SQL statement.

Parameters

$queryString
string
$queryString

Returns

mysqli_result|boolean

Throws

NeevoException

Implementation of

INeevoDriver::runQuery()
public
# beginTransaction( string $savepoint = null )

Begin a transaction if supported.

Begin a transaction if supported.

Parameters

$savepoint
string
$savepoint

Implementation of

INeevoDriver::beginTransaction()
public
# commit( string $savepoint = null )

Commit statements in a transaction.

Commit statements in a transaction.

Parameters

$savepoint
string
$savepoint

Implementation of

INeevoDriver::commit()
public
# rollback( string $savepoint = null )

Rollback changes in a transaction.

Rollback changes in a transaction.

Parameters

$savepoint
string
$savepoint

Implementation of

INeevoDriver::rollback()
public array
# fetch( mysqli_result $resultSet )

Fetch row from given result set as an associative array.

Fetch row from given result set as an associative array.

Parameters

$resultSet
mysqli_result
$resultSet

Returns

array

Implementation of

INeevoDriver::fetch()
public boolean
# seek( mysqli_result $resultSet, integer $offset )

Move internal result pointer.

Move internal result pointer.

Parameters

$resultSet
mysqli_result
$resultSet
$offset
integer

Returns

boolean

Throws

NeevoDriverException

Implementation of

INeevoDriver::seek()
public integer
# getInsertId( )

Get the ID generated in the INSERT statement.

Get the ID generated in the INSERT statement.

Returns

integer

Implementation of

INeevoDriver::getInsertId()
public
# randomizeOrder( NeevoBaseStmt $statement )

Randomize result order.

Randomize result order.

Parameters

$statement
NeevoBaseStmt
$statement

Implementation of

INeevoDriver::randomizeOrder()
public integer|false
# getNumRows( mysqli_result $resultSet )

Get the number of rows in the given result set.

Get the number of rows in the given result set.

Parameters

$resultSet
mysqli_result
$resultSet

Returns

integer|false

Throws

NeevoDriverException

Implementation of

INeevoDriver::getNumRows()
public integer
# getAffectedRows( )

Get the number of affected rows in previous operation.

Get the number of affected rows in previous operation.

Returns

integer

Implementation of

INeevoDriver::getAffectedRows()
public mixed
# escape( mixed $value, string $type )

Escape given value.

Escape given value.

Parameters

$value
mixed
$value
$type
string
$type

Returns

mixed

Throws

InvalidArgumentException

Implementation of

INeevoDriver::escape()
public mixed
# unescape( mixed $value, string $type )

Decode given value.

Decode given value.

Parameters

$value
mixed
$value
$type
string
$type

Returns

mixed

Throws

InvalidArgumentException

Implementation of

INeevoDriver::unescape()
public string
# getPrimaryKey( string $table )

Get the PRIMARY KEY column for given table.

Get the PRIMARY KEY column for given table.

Parameters

$table
string
$table

Returns

string

Implementation of

INeevoDriver::getPrimaryKey()
public array
# getColumnTypes( mysqli_result $resultSet, string $table )

Get types of columns in given result set.

Get types of columns in given result set.

Parameters

$resultSet
mysqli_result
$resultset
$table
string
$table

Returns

array

Implementation of

INeevoDriver::getColumnTypes()
protected string
# parseUpdateStmt( )

Parse UPDATE statement.

Parse UPDATE statement.

Returns

string

Overrides

NeevoParser::parseUpdateStmt
protected string
# parseDeleteStmt( )

Parse DELETE statement.

Parse DELETE statement.

Returns

string

Overrides

NeevoParser::parseDeleteStmt

Methods inherited from NeevoParser

applyLimit(), applyModifiers(), escapeValue(), parse(), parseFieldName(), parseGrouping(), parseInsertStmt(), parseSelectStmt(), parseSorting(), parseSource(), parseWhere(), tryDelimite()

Magic methods summary

Properties summary

Properties inherited from NeevoParser

$clauses, $stmt

Neevo Public API API documentation generated by ApiGen 2.8.0