Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Implements database and API to store and read events in event sourced systems.
pg_eventstore
requires a PostgreSQL database with jsonb data type support (which means you need to have v9.2+). However it is recommended to use a non EOL PostgreSQL version, because the development of this gem is targeted at current PostgreSQL versions.default_transaction_isolation
PostgreSQL config setting("read committed"
) as the implementation relies on it. All other transaction isolation levels("repeatable read"
and "serializable"
) may cause unexpected serialization errors.transaction
pool mode to lower the load on a database.pg_eventstore
requires ruby v3+. The development of this gem is targeted at current ruby versions.Install the gem and add to the application's Gemfile by executing:
$ bundle add pg_eventstore
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install pg_eventstore
Before start using the gem - you have to create the database. Please include this line into your Rakefile
:
load "pg_eventstore/tasks/setup.rake"
This will include necessary rake tasks. You can now run
# Replace this with your real connection url
export PG_EVENTSTORE_URI="postgresql://postgres:postgres@localhost:5532/eventstore"
bundle exec rake pg_eventstore:create
bundle exec rake pg_eventstore:migrate
to create the database, necessary database objects and migrate them to the latest version. After this step your pg_eventstore
is ready to use. There is also a rake pg_eventstore:drop
task which drops the database.
Documentation chapters:
The gem is shipped with its own CLI. Use pg-eventstore --help
to find out its capabilities.
After checking out the repo, run:
bundle
to install dependenciesdocker compose up
to start dev/test servicesbin/setup_db
to create/re-create development and test databases, tables and related objectsbundle exec rbs collection install
to install external rbs definitionsThen, run bin/rspec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
To run admin UI web server - run puma
in your terminal. By default it will start web server on http://0.0.0.0:9292
.
There is a script to help you to tests the pg_eventstore
implementation performance. You can run it using next command:
./benchmark/run
version.rb
file to the release
branch. The new version will be automatically pushed to rubygems.CHANGELOG.md
Bug reports and pull requests are welcome on GitHub at https://github.com/yousty/pg_eventstore. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the PgEventstore project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that pg_eventstore demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.