Schema/Blueprint.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\ShSo\Lacassa\Schema\Blueprint

Package: Default
Parent(s)
\Illuminate\Database\Schema\Blueprint

Properties

>VPropertyprotected\ShSo\Lacassa\Schema\MongoConnection $connection
The Cassandra object for this blueprint.
Details
Type
\ShSo\Lacassa\Schema\MongoConnection
>VPropertyprotected$primary
Details
Type
n/a

Methods

methodpublic__construct( $connection,  $table) : void

Parameters
NameTypeDescription
$connection
$table
methodpublicascii(string $column) : \Illuminate\Support\Fluent

Create a new ascii column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublicbigint(string $column) : \Illuminate\Support\Fluent

Create a new bigint column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublicblob(string $column) : \Illuminate\Support\Fluent

Create a new blob column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublicboolean(string $column) : \Illuminate\Support\Fluent

Create a new boolean column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpubliccompilePrimary() : void

methodpubliccounter(string $column) : \Illuminate\Support\Fluent

Create a new counter column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublicfrozen(string $column) : \Illuminate\Support\Fluent

Create a new frozen column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublicgetAddedColumns() : array

Get the columns on the blueprint that should be added.

Returns
TypeDescription
array
methodpublicinet(string $column) : \Illuminate\Support\Fluent

Create a new inet column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublicint(string $column) : \Illuminate\Support\Fluent

Create a new int column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpubliclistCollection(string $column, string $collectionType) : \Illuminate\Support\Fluent

Create a new list column on the table.

Parameters
NameTypeDescription
$columnstring
$collectionTypestring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublicmapCollection(string $column, string $collectionType1, string $collectionType2) : \Illuminate\Support\Fluent

Create a new map column on the table.

Parameters
NameTypeDescription
$columnstring
$collectionType1string
$collectionType2string
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublicprimary(string | array $columns, string $name = null, string | null $algorithm = null) : \Illuminate\Support\Fluent

Specify the primary key(s) for the table.

Parameters
NameTypeDescription
$columnsstring | array
$namestring
$algorithmstring | null
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublicsetCollection(string $column, string $collectionType) : \Illuminate\Support\Fluent

Create a new set column on the table.

Parameters
NameTypeDescription
$columnstring
$collectionTypestring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublictimestamp(string $column) : \Illuminate\Support\Fluent

Create a new timestamp column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublictimeuuid(string $column) : \Illuminate\Support\Fluent

Create a new timeuuid column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublictoSql(\Illuminate\Database\Connection $connection, \Illuminate\Database\Schema\Grammars\Grammar $grammar) : array

Get the raw SQL statements for the blueprint.

Parameters
NameTypeDescription
$connection\Illuminate\Database\Connection
$grammar\Illuminate\Database\Schema\Grammars\Grammar
Returns
TypeDescription
array
methodpublictuple(string $column, string $tuple1type, string $tuple2type, string $tuple3type) : \Illuminate\Support\Fluent

Create a new tuple column on the table.

Parameters
NameTypeDescription
$columnstring
$tuple1typestring
$tuple2typestring
$tuple3typestring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublicuuid(string $column) : \Illuminate\Support\Fluent

Create a new uuid column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublicvarchar(string $column) : \Illuminate\Support\Fluent

Create a new varchar column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
methodpublicvarint(string $column) : \Illuminate\Support\Fluent

Create a new varint column on the table.

Parameters
NameTypeDescription
$columnstring
Returns
TypeDescription
\Illuminate\Support\Fluent
Documentation was generated by phpDocumentor 2.9.0.