Skip to content
Snippets Groups Projects
Select Git revision
  • ll-php8
  • master default protected
  • php84
  • detached4
  • detached5
  • detached3
  • detached
  • detached2
  • ll-php8-bs5
  • 4.x
  • 6.3.0
  • 6.2.5
  • 6.2.4
  • 6.2.3
  • 6.2.2
  • 6.2.1
  • 6.2.0
  • 6.1.0
  • 6.0.2
  • 6.0.1
  • 6.0.0
  • 5.0.3
  • 5.0.2
  • 5.0.1
  • 5.0
  • 4.2.1
  • 4.2
  • 4.1
  • 4.0
  • 3.0.2
30 results

ModuleOptionsFactory.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    FunctionCreationHelper.php 650 B
    <?php
    
    namespace UnicaenDbImport\CodeGenerator\PostgreSQL\Helper;
    
    use UnicaenDbImport\CodeGenerator\PostgreSQL\PostgreSQLCommonsTrait;
    
    /**
     * Version PostgreSQL.
     *
     * @author Unicaen
     */
    class FunctionCreationHelper extends \UnicaenDbImport\CodeGenerator\Common\Helper\FunctionCreationHelper
    {
        use PostgreSQLCommonsTrait;
    
        protected function generateFunctionBodyBeginningSQLSnippet()
        {
            return <<<'EOT'
    $Q$
    DECLARE
        operation VARCHAR(64);
        hash VARCHAR(255);
        sql TEXT;
    BEGIN
    EOT;
        }
    
        protected function generateFunctionBodyEndingSQLSnippet()
        {
            return <<<'EOT'
    END; $Q$
    LANGUAGE plpgsql;
    EOT;
        }
    }