• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

mongodb-haskell/mongodb: MongoDB driver for Haskell

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

mongodb-haskell/mongodb

开源软件地址(OpenSource Url):

https://github.com/mongodb-haskell/mongodb

开源编程语言(OpenSource Language):

Haskell 100.0%

开源软件介绍(OpenSource Introduction):

This is the Haskell MongoDB driver (client). MongoDB is a free, scalable, fast, document database management system. This driver lets you connect to a MongoDB server, and update and query its data. It also lets you do adminstrative tasks, like create an index or look at performance statistics.

Join the chat at https://gitter.im/mongodb-haskell/mongodb Build Status

Documentation

Dev Environment

It's important for this library to be tested with various versions of mongodb server and with different ghc versions. In order to achieve this we use docker containers and docker-compose. This repository contains two files: docker-compose.yml and reattach.sh.

Docker compose file describes two containers.

One container is for running mongodb server. If you want a different version of mongodb server you need to change the tag of mongo image in the docker-compose.yml. In order to start your mongodb server you need to run:

docker-compose up -d mongodb

In order to stop your containers without loosing the data inside of it:

docker-compose stop mongodb

Restart:

docker-compose start mongodb

If you want to remove the mongodb container and start from scratch then:

docker-compose stop mongodb
docker-compose rm mongodb
docker-compose up -d mongodb

The other container is for compiling your code. By specifying the tag of the image you can change the version of ghc you will be using. If you never started this container then you need:

docker-compose run mongodb-haskell

It will start the container and mount your working directory to /opt/mongodb-haskell If you exit the bash cli then the conainer will stop. In order to reattach to an old stopped container you need to run script reattach.sh. If you run docker-compose run again it will create another container and all work made by cabal will be lost. reattach.sh is a workaround for docker-compose's inability to pick up containers that exited.

When you are done with testing you need to run:

docker-compose stop mongodb

Next time you will need to do:

docker-compose start mongodb
reattach.sh

It will start your stopped container with mongodb server and pick up the stopped container with haskell.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap