src/Generator/Analyzer/Steps/CheckTables.php
protected function loadTableList()
    {
        if ($this->getDatabaseDriver() === 'sqlite') {
            $statement = "SELECT name FROM sqlite_master WHERE type='table';";
        } else {
            $statement = 'SHOW TABLES';
        }

        $tables = DB::select($statement);

        $this->tables = [];

        foreach ($tables as $tableObject) {

            $this->tables[] = array_get(array_values((array) $tableObject), '0');
        }
    }
protected function loadTableList()
    {
        if ($this->getDatabaseDriver() === 'sqlite') {
            $statement = "SELECT name FROM sqlite_master WHERE type='table';";
        } else {
            $statement = 'SHOW TABLES';
        }

        $tables = DB::select($statement);

        $this->tables = [];

        foreach ($tables as $tableObject) {

            $this->tables[] = array_get(array_values((array) $tableObject), '0');
        }
    }
protected function loadTableList ( ) { if ( $ this -> getDatabaseDriver ( ) === 'sqlite' ) { $ statement = "SELECT name FROM sqlite_master WHERE type='table';" ; } else { $ statement = 'SHOW TABLES' ; } $ tables = DB :: select ( $ statement ) ; $ this -> tables = [ ] ; foreach ( $ tables as $ tableObject ) { $ this -> tables [ ] = array_get ( array_values ( ( array ) $ tableObject ) , '0' ) ; } }
Caches the list of tables in the database
Caches the list of tables in the database