Arango PHP ODM

Import
in package

AbstractYes

Allow import multiple documents to a collection

Tags
author

Lucas S. Vieira

Table of Contents

Methods

importArrayDocuments()  : array<string|int, mixed>
Import multiple documents from a array document
importJsonDocuments()  : array<string|int, mixed>
Import multiple documents from a JSON document

Methods

importArrayDocuments()

Import multiple documents from a array document

public static importArrayDocuments(Connection $connection, string $collection, string $arrayDocuments) : array<string|int, mixed>
Parameters
$connection : Connection

Connection object to use.

$collection : string

Collection to import. Must exist on server.

$arrayDocuments : string

Documents JSON arrays as string representation

Tags
throws
ServerException|GuzzleException|InvalidParameterException|MissingParameterException
see
https://www.arangodb.com/docs/stable/http/bulk-imports-importing-self-contained.html
Return values
array<string|int, mixed>

with the results of operation

importJsonDocuments()

Import multiple documents from a JSON document

public static importJsonDocuments(Connection $connection, string $collection, string $jsonDocuments) : array<string|int, mixed>
Parameters
$connection : Connection

Connection object to use.

$collection : string

Collection to import. Must exist on server.

$jsonDocuments : string

JSON documents as string representation

Tags
throws
ServerException|GuzzleException|InvalidParameterException|MissingParameterException
see
https://www.arangodb.com/docs/stable/http/bulk-imports-importing-self-contained.html
Return values
array<string|int, mixed>

with the results of operation


        
On this page

Search results