Skip to content

Commit 5b499ba

Browse files
committed
Initial commit
0 parents  commit 5b499ba

28 files changed

+299
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_store
2+
.bundle/
3+
Gemfile.lock
4+
*.gem
5+
gems
6+
*scratch*
7+
database

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gemspec

MIT-License.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2015-present Scott Bellware
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Message DB
2+
3+
**Microservice Native Event Store and Message Store for Postgres**
4+
5+
A fully-featured event store and message store implemented entirely in PostgreSQL, supporting event sourcing and messaging applications and services.
6+
7+
## Ruby Distribution of Message DB
8+
9+
This library is a Ruby Gem package of the Message DB database for Postgres.
10+
11+
For more information, see:
12+
13+
[https://github.com/message-db/message-db](https://github.com/message-db/message-db)
14+
15+
This package also includes executable scripts installed into the RubyGems execution search path.
16+
17+
For more information on the executables, see:
18+
19+
[http://docs.eventide-project.org/user-guide/message-db/tools.html](http://docs.eventide-project.org/user-guide/message-db/tools.html)
20+
21+
## Documentation
22+
23+
See the Message DB documentation on the Eventide docs site:
24+
25+
[http://docs.eventide-project.org/user-guide/message-db/](http://docs.eventide-project.org/user-guide/message-db/)
26+
27+
## License
28+
29+
The `message-db` library is released under the [MIT License](https://github.com/eventide-project/message-db/blob/master/MIT-License.txt).

install-gems.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
if [ -z ${POSTURE+x} ]; then
6+
echo "(POSTURE is not set. Using \"operational\" by default.)"
7+
posture="operational"
8+
else
9+
posture=$POSTURE
10+
fi
11+
12+
echo
13+
echo "Installing gems locally (posture: $posture)"
14+
echo '= = ='
15+
16+
cmd="bundle install --standalone --path=./gems"
17+
18+
if [ operational == "$posture" ]; then
19+
cmd="$cmd --without=development"
20+
fi
21+
22+
echo $cmd
23+
($cmd)
24+
25+
echo '- - -'
26+
echo '(done)'
27+
echo

message-db.gemspec

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- encoding: utf-8 -*-
2+
Gem::Specification.new do |s|
3+
s.name = 'message-db'
4+
s.version = '0.0.0'
5+
s.summary = 'Microservice native event store and message store for Postgres'
6+
s.description = ' '
7+
8+
s.authors = ['The Eventide Project']
9+
s.email = 'opensource@eventide-project.org'
10+
s.homepage = 'https://github.com/message-db/message-db'
11+
s.licenses = ['MIT']
12+
13+
s.files = Dir.glob('{database}/**/*')
14+
s.executables = Dir.glob('scripts/evt-*').map(&File.method(:basename))
15+
s.bindir = 'scripts'
16+
end

scripts/mdb-clear-messages

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env ruby
2+
3+
root = File.expand_path '../database', __dir__
4+
script_filename = 'clear-messages.sh'
5+
script_filepath = File.join root, script_filename
6+
7+
system script_filepath

scripts/mdb-create-db

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env ruby
2+
3+
root = File.expand_path '../database', __dir__
4+
script_filename = 'install.sh'
5+
script_filepath = File.join root, script_filename
6+
7+
system script_filepath

scripts/mdb-delete-db

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env ruby
2+
3+
root = File.expand_path '../database', __dir__
4+
script_filename = 'uninstall.sh'
5+
script_filepath = File.join root, script_filename
6+
7+
system script_filepath

scripts/mdb-install-functions

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env ruby
2+
3+
root = File.expand_path '../database', __dir__
4+
script_filename = 'install-functions.sh'
5+
script_filepath = File.join root, script_filename
6+
7+
system script_filepath

0 commit comments

Comments
 (0)