Connector
class Connector (View source)
Traits
Properties
| protected array | $options | The default PDO connection options.  | 
                
Methods
                    bool
                
                
                    causedByLostConnection(Throwable $e)
        
                                            
                
            Determine if the given exception was caused by a lost connection.
                    createConnection(string $dsn, array $config, array $options)
        
                                            
                
            Create a new PDO connection.
                    createPdoConnection(string $dsn, string $username, string $password, array $options)
        
                                            
                
            Create a new PDO connection instance.
                    tryAgainIfCausedByLostConnection(Throwable $e, string $dsn, string $username, string $password, array $options)
        
                                            
                
            Handle an exception that occurred during connect execution.
                    array
                
                
                    getOptions(array $config)
        
                                            
                
            Get the PDO options based on the configuration.
                    array
                
                
                    getDefaultOptions()
        
                                            
                
            Get the default PDO connection options.
                    void
                
                
                    setDefaultOptions(array $options)
        
                                            
                
            Set the default PDO connection options.
Details
        
                    protected        bool
    causedByLostConnection(Throwable $e)
        
    
    Determine if the given exception was caused by a lost connection.
        
                            PDO
    createConnection(string $dsn, array $config, array $options)
        
    
    Create a new PDO connection.
        
                    protected        PDO
    createPdoConnection(string $dsn, string $username, string $password, array $options)
        
    
    Create a new PDO connection instance.
        
                    protected        PDO
    tryAgainIfCausedByLostConnection(Throwable $e, string $dsn, string $username, string $password, array $options)
        
    
    Handle an exception that occurred during connect execution.
        
                            array
    getOptions(array $config)
        
    
    Get the PDO options based on the configuration.
        
                            array
    getDefaultOptions()
        
    
    Get the default PDO connection options.
        
                            void
    setDefaultOptions(array $options)
        
    
    Set the default PDO connection options.