Overview

Namespaces

  • Alchemy
    • core
      • query
      • schema
    • dialect
    • engine
    • orm
    • tests
    • util
      • promise
  • PHP

Classes

  • Engine
  • ResultSet

Interfaces

  • IEngine
  • IResultSet
  • Overview
  • Namespace
  • Class
  • Tree

Interface IEngine

All Engine implementations should implement this interface

Direct known implementers

Alchemy\engine\Engine
Namespace: Alchemy\engine
Located at alchemy/engine/IEngine.php
Methods summary
public
# beginTransaction( )

Start an atomic transaction on the database. These should generally not be held open very long in order to prevent deadlocks

Start an atomic transaction on the database. These should generally not be held open very long in order to prevent deadlocks

public
# commitTransaction( )

Commit a transaction as complete

Commit a transaction as complete

public Alchemy\engine\ResultSet
# query( Alchemy\core\query\IQuery $query )

Compile and run a SQL expression on the database

Compile and run a SQL expression on the database

Parameters

$query
Query
Query to compile

Returns

Alchemy\engine\ResultSet
public Alchemy\engine\ResultSet
# execute( string $sql, array $params = array() )

Execute raw SQL on the database connection

Execute raw SQL on the database connection

Parameters

$sql
string
$sql Statement string
$params
array
$params Params to bind to statement

Returns

Alchemy\engine\ResultSet
public
# rollbackTransaction( )

Revert a pending transaction on the database

Revert a pending transaction on the database

API documentation generated by ApiGen 2.8.0