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