[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/includes/vendor/aura/sql/src/Parser/ -> SqliteParser.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 sqlite driver.
  14   *
  15   * @package Aura.Sql
  16   *
  17   */
  18  class SqliteParser extends AbstractParser
  19  {
  20      /**
  21       * {@inheritDoc}
  22       */
  23      protected $split = [
  24          // single-quoted string
  25          "'(?:[^'\\\\]|\\\\'?)*'",
  26          // double-quoted string
  27          '"(?:[^"\\\\]|\\\\"?)*"',
  28          // backticked column names
  29          '`(?:[^`\\\\]|\\\\`?)*`', 
  30      ];
  31    
  32      /**
  33       * {@inheritDoc}
  34       */
  35      protected $skip = '/^(\'|"|`|\:[^a-zA-Z_])/um';
  36  }


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