lib/MongoLite/Database.php
public function getCollectionNames() {

        $stmt   = $this->connection->query("SELECT name FROM sqlite_master WHERE type='table' AND name!='sqlite_sequence';");
        $tables = $stmt->fetchAll( \PDO::FETCH_ASSOC);
        $names  = [];

        foreach ($tables as $table) {
            $names[] = $table['name'];
        }

        return $names;
    }
public function getCollectionNames() {

        $stmt   = $this->connection->query("SELECT name FROM sqlite_master WHERE type='table' AND name!='sqlite_sequence';");
        $tables = $stmt->fetchAll( \PDO::FETCH_ASSOC);
        $names  = [];

        foreach ($tables as $table) {
            $names[] = $table['name'];
        }

        return $names;
    }
public function getCollectionNames ( ) { $ stmt = $ this -> connection -> query ( "SELECT name FROM sqlite_master WHERE type='table' AND name!='sqlite_sequence';" ) ; $ tables = $ stmt -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; $ names = [ ] ; foreach ( $ tables as $ table ) { $ names [ ] = $ table [ 'name' ] ; } return $ names ; }
Get all collection names in the database

@return array
Get all collection names in the database