interface InsertInterface (View source)

Methods

fields(array $fields, boolean $append = true)

Sets the $fields that are going to be inserted.

into(string $target)

Sets the $target cluster in which the new document will be created.

values(array $values, boolean $append = true)

Sets the $values to be inserted in the document created with the INSERT statement.

Details

Insert fields(array $fields, boolean $append = true)

Sets the $fields that are going to be inserted.

The $append parameter is used in order to preserve/discard already-set fields.

Parameters

array $fields
boolean $append

Return Value

Insert

Insert into(string $target)

Sets the $target cluster in which the new document will be created.

Parameters

string $target

Return Value

Insert

Insert values(array $values, boolean $append = true)

Sets the $values to be inserted in the document created with the INSERT statement.

The $append parameter is used in order to preserve/discard already-set fields.

Parameters

array $values
boolean $append

Return Value

Insert