have any lua drive?

64 views
Skip to first unread message

LongSing CHEN

unread,
Sep 15, 2015, 3:56:29 AM9/15/15
to ArangoDB
my system is windows 10 home version.64bit.

i am use 

openresty (lua in nginx) fork version.

but in officeal drive list,no any lua drive. (https://www.arangodb.com/download/)
any one know how can use arangodb in lua ?

Wilfried Gösgens

unread,
Sep 15, 2015, 4:34:20 AM9/15/15
to ArangoDB
Hy,
There currently no active approach for developing a lua client for arangodb.

In general you need to combine these 3:

 - A lua http client: https://github.com/pintsized/lua-resty-http

 - To access the arangodb HTTP-Api (it contains lots of examples, and is also used by all other existing drivers) https://docs.arangodb.com/HttpApi/index.html

 - And a json parser for the replies: http://lua-users.org/wiki/JsonModules

LongSing CHEN

unread,
Sep 15, 2015, 4:45:33 AM9/15/15
to ArangoDB
thank you.
so all drive core is HTTP-Api ? so use HTTP-Api is The most direct approach ?

Wilfried Gösgens於 2015年9月15日星期二 UTC+8下午4時34分20秒寫道:

Wilfried Gösgens

unread,
Sep 15, 2015, 5:16:02 AM9/15/15
to ArangoDB
Hi,
Exactly. Http (s) is the direct aproach.
 If you struggle with the documentation or have further questions, don't hesitate to ask.

LongSing CHEN

unread,
Sep 15, 2015, 5:28:16 AM9/15/15
to ArangoDB
thank you,
I will continue to use php and nodejs connection arangodb.
I use nginx+lua, because some demand at php and nodejs some issues (unrelated arangodb) in windows10.


Wilfried Gösgens於 2015年9月15日星期二 UTC+8下午5時16分02秒寫道:
Reply all
Reply to author
Forward
0 new messages