Overview

Namespaces

  • PommProject
    • Cli
      • Command
      • Exception
    • Foundation
      • Client
      • Converter
        • Geometry
        • Type
      • Exception
      • Inspector
      • Listener
      • Observer
      • PreparedQuery
      • QueryManager
      • Session
      • Tester
    • ModelManager
      • Converter
      • Exception
      • Generator
      • Model
        • FlexibleEntity
        • ModelTrait
      • ModelLayer
      • Tester

Classes

  • QueryManagerClient
  • QueryManagerPooler
  • SimpleQueryManager

Interfaces

  • QueryManagerInterface

Traits

  • QueryParameterParserTrait
  • Overview
  • Namespace
  • Class

Trait QueryParameterParserTrait

QueryParameterParserTrait

Trait that makes query managers to parse, expand anc convert query parameters.

Direct Known Users

PommProject\Foundation\PreparedQuery\PreparedQuery, PommProject\Foundation\QueryManager\SimpleQueryManager
Namespace: PommProject\Foundation\QueryManager
Package: Foundation
Copyright: 2014 - 2015 Grégoire HUBERT
Author: Grégoire HUBERT
License: {@link http://opensource.org/licenses/mit-license.php}
Located at QueryManager/QueryParameterParserTrait.php
Methods summary
abstract protected
# getSession( )
public string
# unorderParameters( string $string )

unorderParameters

unorderParameters

Transform an ordered parameters list with $1, $2 to $* parameters.

Parameters

$string

Returns

string
public string
# orderParameters( string $string )

orderParameters

orderParameters

Transform an unordered parameters list $* to ordered $1, $2 parameters.

Parameters

$string

Returns

string
public array
# getParametersType( mixed $string )

getParametersType

getParametersType

Return an array of the type specified with the parameters if any. It is possible to give the type when passing parameters like « SELECT … WHERE field = $*::timestamptz ». In this case, PostgreSQL will assume the given parameter is a timestamp. Pomm uses these type hints to convert PHP representation to PostgreSQL data value.

Parameters

$string
SQL query.

Returns

array
API documentation generated by ApiGen