database name correction

This commit is contained in:
Göran Heinemann 2020-06-23 16:02:33 +02:00
parent f4663a60e1
commit ab6376b20a
Signed by: goeranh
GPG Key ID: C1364F3F5BA12A09
5 changed files with 8 additions and 10 deletions

View File

@ -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";

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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