Skip to content

mSOHU/lua-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua_ngx support

Introduction

This is a simple lua mongo driver, work in progress.

Building

Install lua-bson first. https://github.com/mSOHU/lua-bson

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