arangodb erlang数据库驱动
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
SisMaker ffd23d7c7d ft: 连接池的进程加上续期操作 il y a 1 an
include ft: 连接池的进程加上续期操作 il y a 1 an
src ft: 连接池的进程加上续期操作 il y a 1 an
.gitignore 初始化提交 il y a 4 ans
LICENSE 初始化提交 il y a 4 ans
README.md ft: 代码调整 il y a 3 ans
VelocyStream.md 初始化提交 il y a 4 ans
VelocyStream_zh.md 初始化提交 il y a 4 ans
rebar.config ft: 编译选项 no_debug_info, deterministic il y a 1 an
start.sh 初始化提交 il y a 4 ans

README.md

eArango

arangodb erlang driver
erlang otp21.2+ arangodb 3.6.2 3.7 3.9

Feature

Efficient, fast and easy to use.

  1. This driver can use connection pooling or simply establish multiple connections in a single process (non-connection pooling mode) for various data operations. Synchronous and asynchronous operations are supported when using connection pooling, and you need to save the requestId extra if you want to use asynchronous operations Waiting for the received data to return, the API encapsulated by the current driver all USES synchronous operation, and can be modified if asynchronous operation is needed. Only synchronous operations are supported for single-process operations. In single-process mode, compared with connection pooling mode, data replication between processes can be reduced once. For operation of large amount of data, database connection can be established separately in data management process instead of connection pooling.
  2. The connection pooling mode and connectionless pool mode API interface ensures the identity, does not need to be treated differently, and is easy to understand and change between connection pooling mode and connectionless pool mode.

Batch requests are not supported

https://www.arangodb.com/docs/stable/http/batch-request.html 

compile

rebar3 compile

how to use

revar3: rebar3 shell
Non-connection pooling mode
Make a connection first
    {ok, Socket} = agVstCli: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(eArango).        %% start app
   agVstCli:startPool(poolName, [], []).            %% start pool
   %% Then you can then invoke various apis using poolName as the first argument
   agMgrDb:curDbInfo(poolName).  

notice

该驱动中所有的字符串 一律值 二进制的字符串 QueryPars 和 Headers为map 其中的 key -> value 必须为字符串