Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boyxuper/lua-mongo
A simple lua mongo driver
https://github.com/boyxuper/lua-mongo
Last synced: 3 months ago
JSON representation
A simple lua mongo driver
- Host: GitHub
- URL: https://github.com/boyxuper/lua-mongo
- Owner: boyxuper
- License: mit
- Fork: true (cloudwu/lua-mongo)
- Created: 2015-03-10T13:36:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-18T05:53:39.000Z (almost 10 years ago)
- Last Synced: 2024-03-17T09:43:14.959Z (11 months ago)
- Language: C
- Size: 141 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-resty - lua-mongo - sockets) (Libraries)
README
## lua_ngx support
* work with lua_ngx's cosocket
* compatible with luajit-2.0 via https://github.com/keplerproject/lua-compat-5.2
* METHOD: auth
* METHOD: once time query
* METHOD: count## Introduction
This is a simple lua mongo driver, work in progress.
## Building
Install lua-bson first.
https://github.com/cloudwu/lua-bsoncd lua-bson
git clone https://github.com/keplerproject/lua-compat-5.2
make linux
## Features
* connect to mongod
* auth with mongod (new!)
* runCommand
* insert document
* update document
* once time query: query, limit, skip, sort (new!)
* count: query (new!)
* find return basic cursor, cursor hasNext() and next()
* findone## Todo list
* write concern
* replica set
* gridFS
* tailable cursor
* more options for cursor
* more command
* and more ...## Getting started
See test.lua