GithubHelp home page GithubHelp logo

isabella232 / reactive-source Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ebay/reactive-source

0.0 0.0 0.0 317 KB

Moved at: http://github.com/kstam/reactive-source

License: MIT License

reactive-source's Introduction

reactive-source

Open source framework to turn your database into a reactive stream of information.

Instead of you querying the database for new events, let the "database" (aka the reactive-source framework) notify you that there is new or updated data available.

Currently supported database systems:

  • Postgres
  • MySQL

Upcoming database systems:

  • MongoDB

Setup for Postgres

There are two modes for the framework to run.

  • Auto configuration mode (the framework will try to configure the database in your behalf)
  • Manual configuration mode (it is your responsibility to configure the database)

Auto Configuration mode (Default)

The user you are connecting to the database with, needs to have the following priviledges:

  • USAGE (In order to set up a stored procedure)
  • TRIGGER (In order to setup the needed triggers)

Manual Configuration Mode

In that case the user should configure the database with the needed procedure and triggers for the tables the user wants to monitor.

Under the resources directory there are some scripts provided to help the configuration of the database.

(More information will be added)

Checkout the code and run the tests

You will need to setup a local instance of a PostgreSQL database for the integration test to get executed.

Once you have installed a local instance of PostgreSQL, you will need to create the test database and user that are needed for the tests to run.

Checkout the code. Under the directory {CODE_DIR}/src/test/resources/scipts/psql you will find 2 sql. You only need the one named create-db-and-user.sql.

So the steps are:

  1. Run the create-db-and-user.sql file with a user that has the privilege to create Databases and Roles.

    psql -h localhost -U <USERNAME> -d <EXISTING_DB_NAME> -f create-db-and-user.sql

  2. Build the project. While on {CODE_DIR} run

    mvn clean package

Thats all!

reactive-source's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.