Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Webservice instance to serve single database

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 conf
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README
Octocat-spinner-32 dbconnector.rb
README
Start:
ruby dbconnector.rb <database-name>
(without database name will listen for commands that dont require connect)

MQ:
Install RabbitMQ

Configure according to what you want to use in dbconnector.yml

e.g.
$ rabbitmqctl add_vhost /db2
Creating vhost "/db2" ...done.

$ rabbitmqctl add_user consumer1 some_password
Creating user "consumer1" ...done.

$ rabbitmqctl add_user consumer2 some_password
Creating user "consumer2" ...done.

$ rabbitmqctl add_user consumer3 some_password
Creating user "consumer3" ...done.

$ rabbitmqctl add_user server1 some_pass
Creating user "server1" ...done.

$ rabbitmqctl map_user_vhost consumer1 /db2
Mapping user "consumer1" to vhost "/db2" ...done.

$ rabbitmqctl map_user_vhost consumer2 /db2
Mapping user "consumer2" to vhost "/db2" ...done.

$ rabbitmqctl map_user_vhost consumer3 /db2
Mapping user "consumer3" to vhost "/db2" ...done.
Something went wrong with that request. Please try again.