martin-schilling / php-velocypack Goto Github PK
View Code? Open in Web Editor NEWPHP 7.1+ extension wrapping the arangodb/velocypack library
PHP 7.1+ extension wrapping the arangodb/velocypack library
@todo exception
The behavior of the Builder class may be altered through the usage of BuilderOptions. These options need to be passed through to userland code
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"
}
}
]
}
}
The Builder and Slice offer a ton of functionality, some of which should be wrapped in this extension.
$subVpack = $vpack->get("a");
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
At the moment JSON data is sorted which can lead to errors. toJson
should return original data from fromJson
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.