protected function parseSqliteOptions(array $config)
    {
        if (isset($config['memory']) && $config['memory']) {
            // If in-memory, no need to parse paths
            unset($config['path']);

            return $config;
        }
        // Prevent SQLite driver from trying to use in-memory connection
        unset($config['memory']);

        // Get path from config or use database path
        $path = isset($config['path']) ? $config['path'] : $this->app['path_resolver']->resolve('database');
        if (Path::isRelative($path)) {
            $path = $this->app['path_resolver']->resolve($path);
        }

        // If path has filename with extension, use that
        if (Path::hasExtension($path)) {
            $config['path'] = $path;

            return $config;
        }

        // Use database name for filename
        $filename = basename($config['dbname']);
        if (!Path::hasExtension($filename)) {
            $filename .= '.db';
        }

        // Join filename with database path
        $config['path'] = Path::join($path, $filename);

        return $config;
    }
protected function parseSqliteOptions(array $config)
    {
        if (isset($config['memory']) && $config['memory']) {
            // If in-memory, no need to parse paths
            unset($config['path']);

            return $config;
        }
        // Prevent SQLite driver from trying to use in-memory connection
        unset($config['memory']);

        // Get path from config or use database path
        $path = isset($config['path']) ? $config['path'] : $this->app['path_resolver']->resolve('database');
        if (Path::isRelative($path)) {
            $path = $this->app['path_resolver']->resolve($path);
        }

        // If path has filename with extension, use that
        if (Path::hasExtension($path)) {
            $config['path'] = $path;

            return $config;
        }

        // Use database name for filename
        $filename = basename($config['dbname']);
        if (!Path::hasExtension($filename)) {
            $filename .= '.db';
        }

        // Join filename with database path
        $config['path'] = Path::join($path, $filename);

        return $config;
    }
protected function parseSqliteOptions ( array $ config ) { if ( isset ( $ config [ 'memory' ] ) && $ config [ 'memory' ] ) { // If in-memory, no need to parse paths unset ( $ config [ 'path' ] ) ; return $ config ; } // Prevent SQLite driver from trying to use in-memory connection unset ( $ config [ 'memory' ] ) ; // Get path from config or use database path $ path = isset ( $ config [ 'path' ] ) ? $ config [ 'path' ] : $ this -> app [ 'path_resolver' ] -> resolve ( 'database' ) ; if ( Path :: isRelative ( $ path ) ) { $ path = $ this -> app [ 'path_resolver' ] -> resolve ( $ path ) ; } // If path has filename with extension, use that if ( Path :: hasExtension ( $ path ) ) { $ config [ 'path' ] = $ path ; return $ config ; } // Use database name for filename $ filename = basename ( $ config [ 'dbname' ] ) ; if ( ! Path :: hasExtension ( $ filename ) ) { $ filename .= '.db' ; } // Join filename with database path $ config [ 'path' ] = Path :: join ( $ path , $ filename ) ; return $ config ; }
Fine-tune Sqlite configuration parameters.

@param array $config

@return array
Fine - tune Sqlite configuration parameters .