Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

  • Connection
  • Context
  • Helpers
  • ResultSet
  • Row
  • SqlLiteral
  • SqlPreprocessor
  • Structure

Interfaces

  • IConventions
  • IReflection
  • IRow
  • IRowContainer
  • IStructure
  • ISupplementalDriver

Exceptions

  • ConnectionException
  • ConstraintViolationException
  • DriverException
  • ForeignKeyConstraintViolationException
  • NotNullConstraintViolationException
  • UniqueConstraintViolationException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Interface IStructure

Provides cached reflection for database structure.

Direct known implementers

Nette\Database\Structure
Namespace: Nette\Database
Located at Database/IStructure.php
Methods summary
public array
# getTables( )

Returns tables list.

Returns tables list.

Returns

array
array
public array
# getColumns( string $table )

Returns table columns list.

Returns table columns list.

Parameters

$table

Returns

array
array
public string|array|null
# getPrimaryKey( string $table )

Returns table primary key.

Returns table primary key.

Parameters

$table

Returns

string|array|null
string|array|NULL
public string|null
# getPrimaryKeySequence( string $table )

Returns table primary key sequence.

Returns table primary key sequence.

Parameters

$table

Returns

string|null
string|NULL
public mixed
# getHasManyReference( string $table, string|null $targetTable = NULL )

Returns hasMany reference. If a targetTable is not provided, returns references for all tables.

Returns hasMany reference. If a targetTable is not provided, returns references for all tables.

Parameters

$table
$targetTable

Returns

mixed
mixed
public mixed
# getBelongsToReference( string $table, string|null $column = NULL )

Returns belongsTo reference. If a column is not provided, returns references for all columns.

Returns belongsTo reference. If a column is not provided, returns references for all columns.

Parameters

$table
$column

Returns

mixed
mixed
public mixed
# rebuild( )

Rebuilds database structure cache.

Rebuilds database structure cache.

Returns

mixed
mixed
public boolean
# isRebuilt( )

Returns true if database cached structure has been rebuilt.

Returns true if database cached structure has been rebuilt.

Returns

boolean
bool
Constants summary
string FIELD_TEXT
#'string'
string FIELD_BINARY
#'bin'
string FIELD_BOOL
#'bool'
string FIELD_INTEGER
#'int'
string FIELD_FLOAT
#'float'
string FIELD_DATE
#'date'
string FIELD_TIME
#'time'
string FIELD_DATETIME
#'datetime'
string FIELD_UNIX_TIMESTAMP
#'timestamp'
string FIELD_TIME_INTERVAL
#'timeint'
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0