Db\Index

Class Phalcon\Db\Index

implements Phalcon\Db\IndexInterface

Allows to define indexes to be used on tables. Indexes are a common way to enhance database performance. An index allows the database server to find and retrieve specific rows much faster than it could do without an index

Methods

public __construct (string $indexName, array $columns)

Phalcon\Db\Index constructor

public string getName ()

Gets the index name

public array getColumns ()

Gets the columns that comprends the index

public static Phalcon\Db\IndexInterface __set_state ([unknown $properties])

Restore a Phalcon\Db\Index object from export

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Db_Index.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部