lithium\data\source\database\adapter\PostgreSql::value PHP Method

value() public method

Converts a given value into the proper type based on a given schema definition.
See also: lithium\data\source\Database::schema()
public value ( mixed $value, array $schema = [] ) : mixed
$value mixed The value to be converted. Arrays will be recursively converted.
$schema array Formatted array from `lithium\data\source\Database::schema()`
return mixed Value with converted type.
    public function value($value, array $schema = array())
    {
        if (($result = parent::value($value, $schema)) !== null) {
            return $result;
        }
        return $this->connection->quote((string) $value);
    }