laravel / 10 / api / 10.x / illuminate / database / dbal / timestamptype.html

TimestampType

class TimestampType extends Type implements PhpDateTimeMappingType (View source)

Methods

string getSQLDeclaration(array $column, AbstractPlatform $platform)

{@inheritdoc}

string getMySqlPlatformSQLDeclaration(array $column)

Get the SQL declaration for MySQL.

string getPostgresPlatformSQLDeclaration(array $column)

Get the SQL declaration for PostgreSQL.

string getSqlServerPlatformSQLDeclaration(array $column)

Get the SQL declaration for SQL Server.

string getName()

{@inheritdoc}

Details

string getSQLDeclaration(array $column, AbstractPlatform $platform)

{@inheritdoc}

Parameters

array $column
AbstractPlatform $platform

Return Value

string

Exceptions

Exception

protected string getMySqlPlatformSQLDeclaration(array $column)

Get the SQL declaration for MySQL.

Parameters

array $column

Return Value

string

protected string getPostgresPlatformSQLDeclaration(array $column)

Get the SQL declaration for PostgreSQL.

Parameters

array $column

Return Value

string

protected string getSqlServerPlatformSQLDeclaration(array $column)

Get the SQL declaration for SQL Server.

Parameters

array $column

Return Value

string

string getName()

{@inheritdoc}

Return Value

string

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Database/DBAL/TimestampType.html