Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • CSqliteColumnSchema
  • CSqliteCommandBuilder
  • CSqliteSchema
  • Overview
  • Package
  • Class
  • Tree

Class CSqliteCommandBuilder

CSqliteCommandBuilder provides basic methods to create query commands for SQLite tables.

CComponent
Extended by CDbCommandBuilder
Extended by CSqliteCommandBuilder
Package: system\db\schema\sqlite
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/db/schema/sqlite/CSqliteCommandBuilder.php
Methods summary
protected string
# createCompositeInCondition( CDbTableSchema $table, array $values, string $prefix )

Generates the expression for selecting rows with specified composite key values. This method is overridden because SQLite does not support the default IN expression with composite columns.

Generates the expression for selecting rows with specified composite key values. This method is overridden because SQLite does not support the default IN expression with composite columns.

Parameters

$table
CDbTableSchema
$table the table schema
$values
array
$values list of primary key values to be selected within
$prefix
string
$prefix column prefix (ended with dot)

Returns

string
the expression for selection

Overrides

CDbCommandBuilder::createCompositeInCondition()
public CDbCommand
# createMultipleInsertCommand( mixed $table, array $data )

Creates a multiple INSERT command. This method could be used to achieve better performance during insertion of the large amount of data into the database tables. Note that SQLite does not keep original order of the inserted rows.

Creates a multiple INSERT command. This method could be used to achieve better performance during insertion of the large amount of data into the database tables. Note that SQLite does not keep original order of the inserted rows.

Parameters

$table
mixed
$table the table schema (CDbTableSchema) or the table name (string).
$data
array[]
$data list data to be inserted, each value should be an array in format (column name=>column value). If a key is not a valid column name, the corresponding value will be ignored.

Returns

CDbCommand
multiple insert command

Since

1.1.14

Overrides

CDbCommandBuilder::createMultipleInsertCommand()
Methods inherited from CDbCommandBuilder
__construct(), applyCondition(), applyGroup(), applyHaving(), applyJoin(), applyLimit(), applyOrder(), bindValues(), composeMultipleInsertCommand(), createColumnCriteria(), createCountCommand(), createCriteria(), createDeleteCommand(), createFindCommand(), createInCondition(), createInsertCommand(), createPkCondition(), createPkCriteria(), createSearchCondition(), createSqlCommand(), createUpdateCommand(), createUpdateCounterCommand(), ensureTable(), getDbConnection(), getIntegerPrimaryKeyDefaultValue(), getLastInsertID(), getSchema()
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Constants inherited from CDbCommandBuilder
PARAM_PREFIX
Magic properties inherited from CDbCommandBuilder
$dbConnection, $schema
API documentation generated by ApiGen 2.8.0