Coder Social home page Coder Social logo

lua-mongo's Introduction

Introduction

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

Building

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

make win

or

make linux

Features

  • connect to mongod
  • runCommand
  • insert document
  • update document
  • 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

lua-mongo's People

Contributors

cloudwu avatar

Stargazers

 avatar  avatar RanceChen avatar Nelson II avatar XieHuanbiao avatar EvanLabs avatar 简律纯 avatar 空白咯 avatar 好胖球 avatar  avatar  avatar lrh avatar NoGameNoLIfe avatar 建辉 avatar  avatar feico avatar teahouse avatar Carl avatar Cheuk avatar Dawei Ma avatar Kevin.Y avatar  avatar  avatar  avatar  avatar Json avatar  avatar JY Li avatar  avatar  avatar tiansin avatar  avatar menduo avatar TheF avatar shajiquan avatar  avatar Peter Guo avatar chenbk avatar 逐日不二 avatar  avatar cswuyg avatar ForthXu avatar afa avatar wangyao avatar Batuhan Göksu avatar 童小飞 avatar puXiaoyi avatar netxfly avatar  avatar Flowerowl avatar  avatar chen zefan avatar  avatar Lloyd Zhou avatar  avatar  avatar Mike Tang avatar Yestein avatar WenJun avatar Cero avatar Wesley Mesquita avatar fliu avatar lostsnow avatar Liu Chen avatar  avatar lixin avatar fangs avatar Jonathan Dai avatar L0ngpa0 avatar Yuanye Ge avatar  avatar Sergey Storchay avatar youxiachai avatar  avatar 阿楠 avatar Alexander Gladysh avatar Wei Xu avatar yuan avatar Chao Wang avatar  avatar

Watchers

Alexander Gladysh avatar  avatar fing avatar ddarkblue avatar James Cloos avatar yuan avatar  avatar htoooth avatar Lloyd Zhou avatar Peter Guo avatar  avatar Rohan Vivek avatar

lua-mongo's Issues

连接mongodb 报9001

MongoDB server version: 3.4.2
mongodb 错误日志:

`2017-05-03T11:47:37.512+0800 I NETWORK [thread1] connection accepted from 127.0.0.1:63342 #13309163 (4 connections now open)

2017-05-03T11:47:37.512+0800 I NETWORK [thread1] connection accepted from 127.0.0.1:63344 #13309164 (5 connections now open)

2017-05-03T11:47:37.512+0800 I NETWORK [thread1] connection accepted from 127.0.0.1:63346 #13309165 (6 connections now open)

2017-05-03T11:47:37.512+0800 D NETWORK [conn13309163] Socket recv() conn closed? 127.0.0.1:63342

2017-05-03T11:47:37.512+0800 D NETWORK [conn13309163] SocketException: remote: 127.0.0.1:63342 error: 9001 socket exception [CLOSED] server [127.0.0.1:63342]

2017-05-03T11:47:37.512+0800 I - [conn13309163] end connection 127.0.0.1:63342 (6 connections now open)

2017-05-03T11:47:37.512+0800 D NETWORK [conn13309164] Socket recv() conn closed? 127.0.0.1:63344

2017-05-03T11:47:37.512+0800 D NETWORK [conn13309164] SocketException: remote: 127.0.0.1:63344 error: 9001 socket exception [CLOSED] server [127.0.0.1:63344]

2017-05-03T11:47:37.512+0800 I - [conn13309164] end connection 127.0.0.1:63344 (5 connections now open)`

请问下怎么解决?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.