src/Setup/Documentations/Database.php
public static function set($driver, $host, $database, $user, $password, $prefixing, $prefix)
    {
        $default = self::dbRow('default', "'default' => '$driver', ");
        //
        switch ($driver) {
            case 'mysql':
                $connections = self::mysqlConnections($host, $database, $user, $password);
                break;
        }
        //
        $connections = self::dbRow('connections', $connections);
        $table = self::dbRow('table', "'migration' => 'vinala_migrations',");
        $prefixing = self::dbRow('prefixing', "'prefixing' => $prefixing ,");
        $prefixe = self::dbRow('prefixe', "'prefixe' => '".$prefix."_',");

        //
        return "<?php\n\nreturn [\n\t".$default.$connections.$table.$prefixing.$prefixe."\n];";
    }
public static function set($driver, $host, $database, $user, $password, $prefixing, $prefix)
    {
        $default = self::dbRow('default', "'default' => '$driver', ");
        //
        switch ($driver) {
            case 'mysql':
                $connections = self::mysqlConnections($host, $database, $user, $password);
                break;
        }
        //
        $connections = self::dbRow('connections', $connections);
        $table = self::dbRow('table', "'migration' => 'vinala_migrations',");
        $prefixing = self::dbRow('prefixing', "'prefixing' => $prefixing ,");
        $prefixe = self::dbRow('prefixe', "'prefixe' => '".$prefix."_',");

        //
        return "<?php\n\nreturn [\n\t".$default.$connections.$table.$prefixing.$prefixe."\n];";
    }
public static function set ( $ driver , $ host , $ database , $ user , $ password , $ prefixing , $ prefix ) { $ default = self :: dbRow ( 'default' , "'default' => '$driver', " ) ; // switch ( $ driver ) { case 'mysql' : $ connections = self :: mysqlConnections ( $ host , $ database , $ user , $ password ) ; break ; } // $ connections = self :: dbRow ( 'connections' , $ connections ) ; $ table = self :: dbRow ( 'table' , "'migration' => 'vinala_migrations'," ) ; $ prefixing = self :: dbRow ( 'prefixing' , "'prefixing' => $prefixing ," ) ; $ prefixe = self :: dbRow ( 'prefixe' , "'prefixe' => '" . $ prefix . "_'," ) ; // return "<?php\n\nreturn [\n\t" . $ default . $ connections . $ table . $ prefixing . $ prefixe . "\n];" ; }
set database config file.

@param string $host
@param string $database
@param string $usre
@param string $password

@return null
set database config file .