在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(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. DocumentationDev EnvironmentIt'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:
In order to stop your containers without loosing the data inside of it:
Restart:
If you want to remove the mongodb container and start from scratch then:
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:
It will start the container and mount your working directory to
When you are done with testing you need to run:
Next time you will need to do:
It will start your stopped container with mongodb server and pick up the stopped container with haskell. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论