Git Product home page Git Product logo

mongo-js's Introduction

mongo-js

mongodb操作数据库 demo,含批量操作修改mongodb数据库脚本demo`

  • DEMO1——mongodb 目录:使用 mongodb 中间件操作 (不定义schema的时候推荐此方式)
  • DEMO2——mongoose 目录:使用 mongoose 中间件操作 (需要定义schema才能使用,无完整schema时建议使用demo1方式)
  • DEMO3——mongodbBatch 目录:使用 mongodb 中间件操作 ,批量更新操作,异步统计完成和失败记录情况和总用时。

usage

  • npm install
  • 执行 mongodb demo : node ./mongodb/connect.js 或可以直接执行:node index.js
  • 执行 mongoose demo : node ./mongoose/index.js

mongo-js's People

Contributors

giscafer avatar

Watchers

 avatar  avatar

Forkers

luyufanzhi

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.