Packages

  • Nette
    • Application
      • Application\Diagnostics
      • Application\Responses
      • Application\Routers
      • Application\UI
    • Caching
      • Caching\Storages
    • ComponentModel
    • Config
    • Database
      • Database\Diagnostics
      • Database\Drivers
      • Database\Reflection
      • Database\Table
    • DI
    • Diagnostics
    • Forms
      • Forms\Controls
      • Forms\Rendering
    • Http
    • Iterators
    • Latte
      • Latte\Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • None
  • PHP

Classes

  • MsSqlDriver
  • MySqlDriver
  • OciDriver
  • OdbcDriver
  • PgSqlDriver
  • Sqlite2Driver
  • SqliteDriver
  • Overview
  • Package
  • Class
  • Tree

Class MySqlDriver

Supplemental MySQL database driver.

Object
Extended by MySqlDriver implements ISupplementalDriver
Package: Nette\Database\Drivers
Author: David Grudl
Located at Database/Drivers/MySqlDriver.php
Methods summary
public
# __construct( Connection $connection, array $options )

Driver options:
- charset => character encoding to set (default is utf8)
- sqlmode => see http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html

Driver options: - charset => character encoding to set (default is utf8) - sqlmode => see http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html

public string
# delimite( string $name )

Delimites identifier for use in a SQL statement.

Delimites identifier for use in a SQL statement.

Parameters

$name
string

Returns

string

Implementation of

ISupplementalDriver::delimite
public string
# formatDateTime( DateTime $value )

Formats date-time for use in a SQL statement.

Formats date-time for use in a SQL statement.

Parameters

$value
DateTime

Returns

string

Implementation of

ISupplementalDriver::formatDateTime
public string
# formatLike( string $value, integer $pos )

Encodes string for use in a LIKE statement.

Encodes string for use in a LIKE statement.

Parameters

$value
string
$pos
integer

Returns

string

Implementation of

ISupplementalDriver::formatLike
public
# applyLimit( string & $sql, integer $limit, integer $offset )

Injects LIMIT/OFFSET to the SQL query.

Injects LIMIT/OFFSET to the SQL query.

Parameters

$sql
string
SQL query that will be modified.
$limit
integer
$offset
integer

Implementation of

ISupplementalDriver::applyLimit
public array
# normalizeRow( array $row, Statement $statement )

Normalizes result row.

Normalizes result row.

Parameters

$row
array
$statement
Statement

Returns

array

Implementation of

ISupplementalDriver::normalizeRow
Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Properties summary
public array $supports array('meta' => TRUE)
#
Nette Framework 2.0beta1 (for PHP 5.2) API API documentation generated by ApiGen 2.3.0