CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Team
    • Issues (Github)
    • YouTube Channel
    • Get Involved
    • Bakery
    • Featured Resources
    • Newsletter
    • Certification
    • My CakePHP
    • CakeFest
    • Facebook
    • Twitter
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C CakePHP 3.8 Red Velvet API

  • Overview
  • Tree
  • Deprecated
  • Version:
    • 3.8
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Namespaces

  • Cake
    • Auth
      • Storage
    • Cache
      • Engine
    • Collection
      • Iterator
    • Command
    • Console
      • Exception
    • Controller
      • Component
      • Exception
    • Core
      • Configure
        • Engine
      • Exception
      • Retry
    • Database
      • Driver
      • Exception
      • Expression
      • Schema
      • Statement
      • Type
    • Datasource
      • Exception
    • Error
      • Middleware
    • Event
      • Decorator
    • Filesystem
    • Form
    • Http
      • Client
        • Adapter
        • Auth
      • Cookie
      • Exception
      • Middleware
      • Session
    • I18n
      • Formatter
      • Middleware
      • Parser
    • Log
      • Engine
    • Mailer
      • Exception
      • Transport
    • Network
      • Exception
    • ORM
      • Association
      • Behavior
        • Translate
      • Exception
      • Locator
      • Rule
    • Routing
      • Exception
      • Filter
      • Middleware
      • Route
    • Shell
      • Helper
      • Task
    • TestSuite
      • Fixture
      • Stub
    • Utility
      • Exception
    • Validation
    • View
      • Exception
      • Form
      • Helper
      • Widget
  • None

Classes

  • BaseSchema
  • CachedCollection
  • Collection
  • MysqlSchema
  • PostgresSchema
  • SqliteSchema
  • SqlserverSchema
  • TableSchema

Interfaces

  • SqlGeneratorInterface
  • TableSchemaAwareInterface
  • TableSchemaInterface
 1: <?php
 2: /**
 3:  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 4:  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 5:  *
 6:  * Licensed under The MIT License
 7:  * For full copyright and license information, please see the LICENSE.txt
 8:  * Redistributions of files must retain the above copyright notice.
 9:  *
10:  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11:  * @link          http://cakephp.org CakePHP(tm) Project
12:  * @since         3.5.0
13:  * @license       http://www.opensource.org/licenses/mit-license.php MIT License
14:  */
15: namespace Cake\Database\Schema;
16: 
17: use Cake\Database\Connection;
18: 
19: /**
20:  * An interface used by TableSchema objects.
21:  */
22: interface SqlGeneratorInterface
23: {
24:     /**
25:      * Generate the SQL to create the Table.
26:      *
27:      * Uses the connection to access the schema dialect
28:      * to generate platform specific SQL.
29:      *
30:      * @param \Cake\Database\Connection $connection The connection to generate SQL for.
31:      * @return array List of SQL statements to create the table and the
32:      *    required indexes.
33:      */
34:     public function createSql(Connection $connection);
35: 
36:     /**
37:      * Generate the SQL to drop a table.
38:      *
39:      * Uses the connection to access the schema dialect to generate platform
40:      * specific SQL.
41:      *
42:      * @param \Cake\Database\Connection $connection The connection to generate SQL for.
43:      * @return array SQL to drop a table.
44:      */
45:     public function dropSql(Connection $connection);
46: 
47:     /**
48:      * Generate the SQL statements to truncate a table
49:      *
50:      * @param \Cake\Database\Connection $connection The connection to generate SQL for.
51:      * @return array SQL to truncate a table.
52:      */
53:     public function truncateSql(Connection $connection);
54: 
55:     /**
56:      * Generate the SQL statements to add the constraints to the table
57:      *
58:      * @param \Cake\Database\Connection $connection The connection to generate SQL for.
59:      * @return array SQL to add the constraints.
60:      */
61:     public function addConstraintSql(Connection $connection);
62: 
63:     /**
64:      * Generate the SQL statements to drop the constraints to the table
65:      *
66:      * @param \Cake\Database\Connection $connection The connection to generate SQL for.
67:      * @return array SQL to drop a table.
68:      */
69:     public function dropConstraintSql(Connection $connection);
70: }
71: 
Follow @CakePHP
#IRC
OpenHub
Rackspace
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Logos & Trademarks
  • Community
  • Team
  • Issues (Github)
  • YouTube Channel
  • Get Involved
  • Bakery
  • Featured Resources
  • Newsletter
  • Certification
  • My CakePHP
  • CakeFest
  • Facebook
  • Twitter
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs