SchemaState
abstract class SchemaState (View source)
Properties
| protected Connection | $connection | The connection instance.  | 
                |
| protected Filesystem | $files | The filesystem instance.  | 
                |
| protected string | $migrationTable | The name of the application's migration table.  | 
                |
| protected callable | $processFactory | The process factory callback.  | 
                |
| protected callable | $output | The output callable instance.  | 
                
Methods
                    void
                
                
                    __construct(Connection $connection, Filesystem|null $files = null, callable|null $processFactory = null)
        
                                            
                
            Create a new dumper instance.
                    void
                
                
                
            
                    void
                
                
                    load(string $path)
        
                                            
                
            Load the given schema file into the database.
                    Process
                
                
                    makeProcess(mixed ...$arguments)
        
                                            
                
            Create a new process instance.
                    $this
                
                
                    withMigrationTable(string $table)
        
                                            
                
            Specify the name of the application's migration table.
                    $this
                
                
                    handleOutputUsing(callable $output)
        
                                            
                
            Specify the callback that should be used to handle process output.
Details
        
                            void
    __construct(Connection $connection, Filesystem|null $files = null, callable|null $processFactory = null)
        
    
    Create a new dumper instance.
        
            abstract                void
    dump(Connection $connection, string $path)
        
    
    Dump the database's schema into a file.
        
            abstract                void
    load(string $path)
        
    
    Load the given schema file into the database.
        
                            Process
    makeProcess(mixed ...$arguments)
        
    
    Create a new process instance.
        
                            $this
    withMigrationTable(string $table)
        
    
    Specify the name of the application's migration table.
        
                            $this
    handleOutputUsing(callable $output)
        
    
    Specify the callback that should be used to handle process output.