class MsSqlReflector implements Reflector

internal  
 

The reflector for MS SQL databases.

Methods

__construct(Driver $driver)

No description

array
getTables()

Returns list of tables.

int
getTableCount($table, $fallback = true)

Returns count of rows in a table

array
getColumns($table)

Returns metadata for all columns in a table.

array
getIndexes($table)

Returns metadata for all indexes in a table.

array
getForeignKeys($table)

Returns metadata for all foreign keys in a table.

Details

at line 25
__construct(Driver $driver)

No description

Parameters

Driver $driver

at line 35
array getTables()

Returns list of tables.

Return Value

array

of {name [, (bool) view ]}

at line 57
int getTableCount($table, $fallback = true)

Returns count of rows in a table

Parameters

$table
$fallback

Return Value

int

at line 89
array getColumns($table)

Returns metadata for all columns in a table.

Parameters

$table

Return Value

array

of {name, nativetype [, table, fullname, (int) size, (bool) nullable, (mixed) default, (bool) autoincrement, (array) vendor ]}

at line 132
array getIndexes($table)

Returns metadata for all indexes in a table.

Parameters

$table

Return Value

array

of {name, (array of names) columns [, (bool) unique, (bool) primary ]}

at line 173
array getForeignKeys($table)

Returns metadata for all foreign keys in a table.

Parameters

$table

Return Value

array

Traits

Better OOP experience.