Documentation

RemoveNamespacedAssets extends AbstractVisitor
in package

Removes 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.

Tags
author

Benjamin Eberlei kontakt@beberlei.de

since
2.2

Table of Contents

$schema  : Schema
acceptColumn()  : void
acceptForeignKey()  : void
acceptIndex()  : void
acceptNamespace()  : mixed
Accepts a schema namespace name.
acceptSchema()  : void
acceptSequence()  : void
acceptTable()  : void

Properties

Methods

acceptNamespace()

Accepts a schema namespace name.

public acceptNamespace(mixed $namespaceName) : mixed
Parameters
$namespaceName : mixed

The schema namespace name to accept.

Return values
mixed

Search results