class RemoveNamespacedAssets implements Visitor (View source)

Remove assets from a schema that are not in the default namespace.

Some databases such as MySQL support cross databases joins, but don't allow to call DDLs to a database from another connected database. Before a schema is serialized into SQL this visitor can cleanup schemas with non default namespaces.

This visitor filters all these non-default namespaced tables and sequences and removes them from the SChema instance.

Methods

acceptSchema(Schema $schema)

No description

acceptTable(Table $table)

No description

acceptSequence(Sequence $sequence)

No description

acceptColumn(Table $table, Column $column)

No description

acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint)

No description

acceptIndex(Table $table, Index $index)

No description

Details

acceptSchema(Schema $schema)

Parameters

Schema $schema

acceptTable(Table $table)

Parameters

Table $table

acceptSequence(Sequence $sequence)

Parameters

Sequence $sequence

acceptColumn(Table $table, Column $column)

Parameters

Table $table
Column $column

acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint)

Parameters

Table $localTable
ForeignKeyConstraint $fkConstraint

acceptIndex(Table $table, Index $index)

Parameters

Table $table
Index $index