|
пре 4 година | |
---|---|---|
include | пре 4 година | |
src | пре 4 година | |
.gitignore | пре 5 година | |
LICENSE | пре 5 година | |
README.md | пре 4 година | |
rebar.config | пре 4 година | |
start.sh | пре 5 година |
arangodb erlang driver
erlang otp21.2+ arangodb 3.6.2 3.7
Efficient, fast and easy to use.
https://www.arangodb.com/docs/stable/http/batch-request.html
rebar get-deps; rebar compile or rebar3 compile
Note: If you build Jiffy on The Windows platform, you will need to set up an additional compilation environment. [See jiffy for details](https://github.com/SisMaker/erlUtils/tree/master/src/docs)
rebar: erl -pa ./ebin -pa ./deps/jiffy/ebin or
revar3: rebar3 shell
Non-connection pooling mode
Make a connection first
{ok, Socket} = agHttpCli:connect([]). %% Use default Settings
%% Then you can then call various apis using Socket as the first argument
agMgrDb:curDbInfo(Socket).
Connection pooling mode
application:ensure_all_started(erlArango). %% start app
agHttpCli:startPool(poolName, [], []). %% start pool
%% Then you can then invoke various apis using poolName as the first argument
agMgrDb:curDbInfo(poolName).