[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/includes/vendor/aura/sql/src/Parser/ -> PgsqlParser.php (source)

   1  <?php
   2  /**
   3   *
   4   * This file is part of Aura for PHP.
   5   *
   6   * @license https://opensource.org/licenses/MIT MIT
   7   *
   8   */
   9  namespace Aura\Sql\Parser;
  10  
  11  /**
  12   *
  13   * Parsing/rebuilding functionality for the pgsl driver.
  14   *
  15   * @package Aura.Sql
  16   *
  17   */
  18  class PgsqlParser extends AbstractParser
  19  {
  20      /**
  21       *
  22       * Split the query string on these regexes.
  23       *
  24       * @var array
  25       *
  26       */
  27      protected $split = [
  28          // single-quoted string
  29          "'(?:[^'\\\\]|\\\\'?)*'",
  30          // double-quoted string
  31          '"(?:[^"\\\\]|\\\\"?)*"',
  32          // double-dollar string (empty dollar-tag)
  33          '\$\$(?:[^\$]?)*\$\$',
  34          // dollar-tag string -- DOES NOT match tags properly
  35          '\$[^\$]+\$.*\$[^\$]+\$',
  36      ];
  37  
  38      /**
  39       *
  40       * Skip query parts matching this regex.
  41       *
  42       * @var string
  43       *
  44       */
  45      protected $skip = '/^(\'|\"|\$|\:[^a-zA-Z_])/um';
  46  }


Generated: Thu Sep 19 05:10:04 2024 Cross-referenced by PHPXref 0.7.1