Giter Club home page Giter Club logo

php-velocypack's People

Contributors

martin-schilling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

php-velocypack's Issues

Transactions not working

I've got the following error if I run this Unit Test (docker-compose run --rm vpack vendor/bin/phpunit --filter it_inserts_documents_at_once).

terminate called after throwing an instance of 'arangodb::velocypack::Exception'
  what():  Cannot execute operation without attribute translator

That's the JSON response

{
    "error": false,
    "code": 200,
    "result": {
        "rId0": [
            {
                "_id": "transactionCol\/843",
                "_key": "843",
                "_rev": "_XvI3Zgq--_",
                "new": {
                    "_key": "843",
                    "_id": "transactionCol\/843",
                    "_rev": "_XvI3Zgq--_",
                    "test": "valid"
                }
            },
            {
                "_id": "transactionCol\/847",
                "_key": "847",
                "_rev": "_XvI3Zgq--B",
                "new": {
                    "_key": "847",
                    "_id": "transactionCol\/847",
                    "_rev": "_XvI3Zgq--B",
                    "test2": "valid2"
                }
            },
            {
                "_id": "transactionCol\/849",
                "_key": "849",
                "_rev": "_XvI3Zgq--D",
                "new": {
                    "_key": "849",
                    "_id": "transactionCol\/849",
                    "_rev": "_XvI3Zgq--D",
                    "test3": "valid3"
                }
            }
        ]
    }
}

Add support for BuilderOptions

The behavior of the Builder class may be altered through the usage of BuilderOptions. These options need to be passed through to userland code

Add Exceptions

  • Add the necessary custom exceptions
  • Throw them in every place marked with @todo exception
  • Add global exception converter to convert all missed/unhandeled C++ exceptions to PHP exceprions to prevenr the entire application from dying

PHP 7.3 converts indexed array to object

See Travis

1) ArangoDbTest\StatementTest::it_supports_json_arbitrary_data
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'["test"]'
+'{"0":"test"}'
/home/travis/build/sandrokeil/arangodb-php-client/test/StatementTest.php:176

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.