database name correction

This commit is contained in:
Göran Heinemann 2020-06-23 16:02:33 +02:00
parent f4663a60e1
commit ab6376b20a
No known key found for this signature in database
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\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";

View File

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

View File

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

View File

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

View File

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