Comments (8)
Looks like we have to create an own main package because of building the go driver leads to errors.
-buildmode=c-archive requires exactly one main package
-buildmode=c-shared requires exactly one main package
from arangodb-php-driver.
Here is an example blog post how to build c-shared.
from arangodb-php-driver.
@martin-schilling I've created a new branch golang which builds the c archive from go-velocypack. Now we have to find a way to call test()
from the php-cpp main file. I guess there is some linker fun ;-)
We have to check what does this mean exactly
The only callable symbols will be those functions exported using a cgo //export comment
from arangodb-php-driver.
@martin-schilling I've added a test case. Now it's your turn. ;-) We have the following issues:
g++: warning: go/arangodb.a: linker input file unused because linking not done
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/arangodb.so' - /usr/lib/php/20160303/arangodb.so:
invalid ELF header in Unknown on line 0
PHP Fatal error: Uncaught Error: Call to undefined function vpack() in /app/test.php:13
Stack trace:
#0 {main}
thrown in /app/test.php on line 13
Fatal error: Uncaught Error: Call to undefined function vpack() in /app/test.php:13
Stack trace:
#0 {main}
thrown in /app/test.php on line 13
from arangodb-php-driver.
@sandrokeil The linking stuff should hopefully be fixed now. I think the next aim should be getting some database interaction going in a test case.
from arangodb-php-driver.
@martin-schilling Thanks so much. I want to try the vpack example from the master branch first and maybe the go return value mapping. You can bring a new PR with the connection if you have time. 👍
from arangodb-php-driver.
There is an important issue
The correct program should use a type defined in C, rather than in Go, because otherwise the external C programs have to manually define a C struct matching the Go struct, which is non-trivial and error-prone.
from arangodb-php-driver.
We stick with C++.
from arangodb-php-driver.
Related Issues (20)
- Create classes to handle a connection and to send data HOT 1
- Add wrapper for fuerte message classes
- Use own namespace exceptions HOT 2
- Determine number of available threads for EventLoopService HOT 1
- Add Travis tests HOT 5
- Move implementation from response.h to response.cpp HOT 1
- Add check for undefined symbols/references
- Cursor / Statement implementation HOT 1
- Sending requests asynchronously fails on larger quantities HOT 2
- Correct parameters for Connection class HTTP verb methods
- Check transaction response with velocypack HOT 2
- VST 1.0 is really slow compared to VST 1.1 HOT 1
- Switch to native Zend Engine
- [ZendEngine Driver] Fix constructor/desctructor calls HOT 1
- [ZendEngine Driver] Clean up code structure
- [ZendEngine Driver] Memory leaks
- [ZendEngine Driver] Performance and test coverage
- [ZendEngine Driver] Efficient returning of variables
- [ZendEngine Driver] Consider using CharBufferSink
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arangodb-php-driver.