tflori/orm

just another orm...

View the Project on GitHub tflori/orm

Build Status Test Coverage Maintainability Latest Stable Version Total Downloads

» API Reference » ORM\Dbal\Escaping

ORM\Dbal\Escaping

Table of Contents

Abstract

Methods

ORM\Dbal\Escaping::escapeIdentifier

public function escapeIdentifier(string $identifier): string
Returns $identifier quoted for use in a sql statement
Returns string  
Parameters
Parameter Type Description
$identifier string Identifier to quote

ORM\Dbal\Escaping::escapeIdentifier

↑ top


ORM\Dbal\Escaping::escapeValue

public function escapeValue(mixed $value): string
Returns $value formatted to use in a sql statement.
Returns string  
Throws ORM\Exception\NotScalar  
Parameters
Parameter Type Description
$value mixed The variable that should be returned in SQL syntax

ORM\Dbal\Escaping::escapeValue

↑ top