database name correction
This commit is contained in:
parent
f4663a60e1
commit
ab6376b20a
|
@ -7,7 +7,7 @@ use ArangoDBClient\Document;
|
|||
use ArangoDBClient\DocumentHandler;
|
||||
use ArangoDBClient\UpdatePolicy;
|
||||
|
||||
include 'config.php';
|
||||
require 'config.php';
|
||||
require "vendor/autoload.php";
|
||||
require "Seite.php";
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ $connectionOptions = array(
|
|||
ConnectionOptions::OPTION_CREATE => true,
|
||||
// optionally create new collections when inserting documents
|
||||
ConnectionOptions::OPTION_UPDATE_POLICY => UpdatePolicy::LAST,
|
||||
ConnectionOptions::OPTION_DATABASE => 'database',
|
||||
ConnectionOptions::OPTION_DATABASE => $database,
|
||||
);
|
||||
|
||||
// open connection
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
<?php
|
||||
|
||||
/*use ArangoDBClient\CollectionHandler;
|
||||
use ArangoDBClient\CollectionHandler;
|
||||
use ArangoDBClient\Connection;
|
||||
use ArangoDBClient\ConnectionOptions;
|
||||
use ArangoDBClient\DocumentHandler;
|
||||
use ArangoDBClient\UpdatePolicy;*/
|
||||
use ArangoDBClient\UpdatePolicy;
|
||||
|
||||
namespace ArangoDBClient;
|
||||
|
||||
include "config.php";
|
||||
require "config.php";
|
||||
require "vendor/autoload.php";
|
||||
|
||||
$connectionOptions = array(
|
||||
|
@ -31,7 +29,7 @@ $connectionOptions = array(
|
|||
ConnectionOptions::OPTION_CREATE => true,
|
||||
// optionally create new collections when inserting documents
|
||||
ConnectionOptions::OPTION_UPDATE_POLICY => UpdatePolicy::LAST,
|
||||
ConnectionOptions::OPTION_DATABASE => 'database',
|
||||
ConnectionOptions::OPTION_DATABASE => $database,
|
||||
);
|
||||
|
||||
// open connection
|
||||
|
|
|
@ -30,7 +30,7 @@ $connectionOptions = array(
|
|||
ConnectionOptions::OPTION_CREATE => true,
|
||||
// optionally create new collections when inserting documents
|
||||
ConnectionOptions::OPTION_UPDATE_POLICY => UpdatePolicy::LAST,
|
||||
ConnectionOptions::OPTION_DATABASE => 'database',
|
||||
ConnectionOptions::OPTION_DATABASE => $database,
|
||||
);
|
||||
|
||||
// open connection
|
||||
|
|
|
@ -33,7 +33,7 @@ $connectionOptions = array(
|
|||
ConnectionOptions::OPTION_CREATE => true,
|
||||
// optionally create new collections when inserting documents
|
||||
ConnectionOptions::OPTION_UPDATE_POLICY => UpdatePolicy::LAST,
|
||||
ConnectionOptions::OPTION_DATABASE => 'database',
|
||||
ConnectionOptions::OPTION_DATABASE => $database,
|
||||
);
|
||||
|
||||
// open connection
|
||||
|
|
Loading…
Reference in New Issue