Documentation

Table extends AbstractFormatter
in package

Schema table formatter class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
6.5.0

Table of Contents

Methods

createConstraints()  : string
Create constraints
createIndices()  : string
Create indices
createPgsqlSequences()  : string
Create PostgreSQL sequences
createSequences()  : string
Create sequences
formatEndOfTable()  : string
Format end of table
formatPrimarySchema()  : string
Format primary key schema
unquoteId()  : string
Un-quote identifier

Methods

createConstraints()

Create constraints

public static createConstraints(array<string|int, mixed> $constraints, string $table, AbstractStructure $schema) : string
Parameters
$constraints : array<string|int, mixed>
$table : string
$schema : AbstractStructure
Return values
string

createIndices()

Create indices

public static createIndices(array<string|int, mixed> $indices, string $table, AbstractStructure $schema) : string
Parameters
$indices : array<string|int, mixed>
$table : string
$schema : AbstractStructure
Return values
string

createPgsqlSequences()

Create PostgreSQL sequences

public static createPgsqlSequences(array<string|int, mixed> $increment, string $table, array<string|int, mixed> $columns) : string
Parameters
$increment : array<string|int, mixed>
$table : string
$columns : array<string|int, mixed>
Return values
string

createSequences()

Create sequences

public static createSequences(string $dbType, array<string|int, mixed> $increment, string $table, array<string|int, mixed> $columns) : string
Parameters
$dbType : string
$increment : array<string|int, mixed>
$table : string
$columns : array<string|int, mixed>
Return values
string

formatEndOfTable()

Format end of table

public static formatEndOfTable(string $dbType[, string|null $engine = null ][, string|null $charset = null ][, int|null $increment = null ]) : string
Parameters
$dbType : string
$engine : string|null = null
$charset : string|null = null
$increment : int|null = null
Return values
string

formatPrimarySchema()

Format primary key schema

public static formatPrimarySchema(string $dbType, array<string|int, mixed> $primary) : string
Parameters
$dbType : string
$primary : array<string|int, mixed>
Return values
string

unquoteId()

Un-quote identifier

public static unquoteId(string $identifier) : string
Parameters
$identifier : string
Return values
string

        
On this page

Search results