Overview

Namespaces

  • CzProject
    • SqlGenerator
      • Drivers
      • Statements

Classes

  • Helpers
  • SqlDocument

Interfaces

  • IDriver
  • IStatement

Exceptions

  • DuplicateException
  • Exception
  • InvalidArgumentException
  • NotImplementedException
  • NotSupportedException
  • OutOfRangeException
  • StaticClassException
  • Overview
  • Namespace
  • Class

Class SqlDocument

Namespace: CzProject\SqlGenerator
Located at SqlDocument.php
Methods summary
public CzProject\SqlGenerator\SqlDocument
# addStatement( CzProject\SqlGenerator\IStatement $statement )

Returns

CzProject\SqlGenerator\SqlDocument
public boolean
# isEmpty( )

Returns

boolean
public string[]
# getSqlQueries( CzProject\SqlGenerator\IDriver $driver )

Returns

string[]
public string
# toSql( CzProject\SqlGenerator\IDriver $driver )

Returns

string
public CzProject\SqlGenerator\Statements\Insert
# insert( string $tableName, array $data )

Parameters

$tableName
$data

Returns

CzProject\SqlGenerator\Statements\Insert
public CzProject\SqlGenerator\Statements\CreateTable
# createTable( string $tableName )

Parameters

$tableName

Returns

CzProject\SqlGenerator\Statements\CreateTable
public CzProject\SqlGenerator\Statements\DropTable
# dropTable( string $tableName )

Parameters

$tableName

Returns

CzProject\SqlGenerator\Statements\DropTable
public CzProject\SqlGenerator\Statements\RenameTable
# renameTable( string $oldTable, string $newTable )

Parameters

$oldTable
$newTable

Returns

CzProject\SqlGenerator\Statements\RenameTable
public CzProject\SqlGenerator\Statements\AlterTable
# alterTable( string $tableName )

Parameters

$tableName

Returns

CzProject\SqlGenerator\Statements\AlterTable
public CzProject\SqlGenerator\Statements\SqlCommand
# command( string $command )

Parameters

$command

Returns

CzProject\SqlGenerator\Statements\SqlCommand
public CzProject\SqlGenerator\Statements\Comment
# comment( string $comment )

Parameters

$comment

Returns

CzProject\SqlGenerator\Statements\Comment
czproject/sql-generator v1.2.1 API documentation API documentation generated by ApiGen