mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
More clarifications for indexes.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321552 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
a495f61c3c
commit
dff0dee9c8
2 changed files with 7 additions and 3 deletions
|
@ -48,7 +48,8 @@ public function deleteIndexes($keys) {
|
|||
<literal>deleteIndexes</literal> database command.
|
||||
</para>
|
||||
<para>
|
||||
Thus, if you named an index "superfast query", you could delete it with:
|
||||
Thus, if you named an index "superfast query", you could only delete it
|
||||
with the PHP driver by running:
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
|
@ -87,7 +88,7 @@ $db->command(array("deleteIndexes" => $collection->getName(), "index" => "superf
|
|||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the database response.
|
||||
Returns the generated name of the key if successful, or &null; otherwise.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
|
|
@ -34,7 +34,10 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Field or fields to use as index.
|
||||
An array of fields by which to sort the index on. Each element in the
|
||||
array has as key the field name, and as value either
|
||||
<literal>1</literal> for ascending sort, or <literal>-1</literal> for
|
||||
descending sort.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
Loading…
Reference in a new issue