Overview

Namespaces

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

Classes

  • DataMapper
  • DDL
  • ManyToOne
  • OneToMany
  • OneToOne
  • ORMQuery
  • ORMTable
  • ORMTableRef
  • RelatedSet
  • Relationship
  • Session
  • SessionSelect
  • WorkQueue
  • Overview
  • Namespace
  • Class
  • Tree

Class WorkQueue

Queue for scheduling queries to be run later, in the proper order

Namespace: Alchemy\orm
Located at alchemy/orm/WorkQueue.php
Methods summary
public Alchemy\util\promise\Promise
# delete( string $cls, array $pk )

Delete data based on the given filters

Delete data based on the given filters

Parameters

$cls
string
$cls Class name of DataMapper subclass
$pk
array
$pk array(ColumnName => IQueryValue) UPDATE Filters

Returns

Alchemy\util\promise\Promise
resolved when DELETE is actually run
public
# flush( Alchemy\engine\IEngine $engine )

Flush all pending queries to the database

Flush all pending queries to the database

Parameters

$engine
Alchemy\engine\IEngine
$engine
public Alchemy\util\promise\Promise
# insert( string $cls, array $data )

INSERT data based on the given DataMapper class and a record of properties.

INSERT data based on the given DataMapper class and a record of properties.

Parameters

$cls
string
$cls Class name of DataMapper subclass
$data
array
$data Array of properties to send in the INSERT

Returns

Alchemy\util\promise\Promise
resolved when INSERT is actual run
protected Alchemy\util\promise\Promise
# push( Alchemy\core\query\Query|Alchemy\util\Monad $query )

Push a query onto the end of the queue

Push a query onto the end of the queue

Parameters

$query
Alchemy\core\query\Query|Alchemy\util\Monad
Query to push

Returns

Alchemy\util\promise\Promise
resolved when query is actual run
public Alchemy\util\promise\Promise
# update( string $cls, array $pk, array $data )

UPDATE data based on the given DataMapper class, a record of properties to update, and an array keys

UPDATE data based on the given DataMapper class, a record of properties to update, and an array keys

Parameters

$cls
string
$cls Class name of DataMapper subclass
$pk
array
$pk array(ColumnName => IQueryValue) UPDATE Filters
$data
array
$data Array of properties to send in the INSERT

Returns

Alchemy\util\promise\Promise
resolved when INSERT is actually run
Properties summary
protected array $queue array()
#
API documentation generated by ApiGen 2.8.0