class Schema

Methods

__construct(array $tables = [], array $views = [], array $enums = [], array $domains = [], array $issues = [], Impact $impact = new Impact())

Create a schema snapshot with indexed definitions.

Table|null
table(string $name, string|null $schema = null)

Find a table by name, requiring an unqualified name to be unambiguous.

View|null
view(string $name, string|null $schema = null)

Find a view by name, requiring an unqualified name to be unambiguous.

EnumType|null
enum(string $name, string|null $schema = null)

Find an enum type by name, requiring an unqualified name to be unambiguous.

Domain|null
domain(string $name, string|null $schema = null)

Find a domain by name, requiring an unqualified name to be unambiguous.

bool
isComplete()

Determine whether all represented schema and table facts are complete.

Details

at line 35
__construct(array $tables = [], array $views = [], array $enums = [], array $domains = [], array $issues = [], Impact $impact = new Impact())

Create a schema snapshot with indexed definitions.

Parameters

array $tables
array $views
array $enums
array $domains
array $issues
Impact $impact

how the input affects relations that existed before it

at line 53
Table|null table(string $name, string|null $schema = null)

Find a table by name, requiring an unqualified name to be unambiguous.

Parameters

string $name
string|null $schema

Return Value

Table|null

at line 61
View|null view(string $name, string|null $schema = null)

Find a view by name, requiring an unqualified name to be unambiguous.

Parameters

string $name
string|null $schema

Return Value

View|null

at line 69
EnumType|null enum(string $name, string|null $schema = null)

Find an enum type by name, requiring an unqualified name to be unambiguous.

Parameters

string $name
string|null $schema

Return Value

EnumType|null

at line 77
Domain|null domain(string $name, string|null $schema = null)

Find a domain by name, requiring an unqualified name to be unambiguous.

Parameters

string $name
string|null $schema

Return Value

Domain|null

at line 85
bool isComplete()

Determine whether all represented schema and table facts are complete.

Return Value

bool