Giter Club home page Giter Club logo

siddhi-store-rdbms's Introduction

siddhi-store-rdbms

The siddhi-store-rdbms extension is an extension to Siddhi that can be used to persist events to a RDBMS instance of the users choice. Find some useful links below:

Latest API Docs

Latest API Docs is 4.0.4.

Prerequisites

  • A RDBMS server instance should be started.
  • User should have the necessary privileges and access rights to connect to the RDBMS data store of choice.

How to use

Using the extension in WSO2 Stream Processor

  • You can use this extension in the latest WSO2 Stream Processor that is a part of WSO2 Analytics offering, with editor, debugger and simulation support.

  • This extension is shipped by default with WSO2 Stream Processor, if you wish to use an alternative version of this extension you can replace the component jar that can be found in the <STREAM_PROCESSOR_HOME>/lib directory.

Using the extension as a java library

  • This extension can be added as a maven dependency along with other Siddhi dependencies to your project.
     <dependency>
        <groupId>org.wso2.extension.siddhi.store.rdbms</groupId>
        <artifactId>siddhi-store-rdbms</artifactId>
        <version>x.x.x</version>
     </dependency>

Running Integration tests in docker containers(Optional)

The RDBMS functionality are tested with the docker base integration test framework, except the H2 default embedded database is not uses external docker container. The test framework initialize the docker container for each database according to the given profile before execute the test suit.

  1. Install and run docker in daemon mode.

    • How to install docker on Linux
    Note: These commands retrieve content from get.docker.com web in a quiet output-document mode and install.
          Then we need to stop docker service as it needs to restart docker in daemon mode. After that, we need to
          export docker daemon host.
    wget -qO- https://get.docker.com/ | sh
    sudo service dockerd stop
    export DOCKER_HOST=tcp://172.17.0.1:4326
    docker daemon -H tcp://172.17.0.1:4326
    
  2. To run the integration test, navigate to the siddhi-store-rdbms/ directory and issue the following commands.

    • H2 default:
    mvn clean install
    Note: h2 is the default activated profile as it is not used docker.
    
    • MySQL 5.7:
    mvn verify -P local-mysql -f /component/pom.xml -Dskip.surefire.test=true -Ddocker.removeVolumes=true
    
    • Postgres 9.6:
    mvn verify -P local-postgres -f /component/pom.xml -Dskip.surefire.test=true -Ddocker.removeVolumes=true
    
    • MSSQL CTP 2.0:
    mvn verify -P local-mssql -f /component/pom.xml -Dskip.surefire.test=true
    
    • Oracle 11.2.0.2 Express Edition:
    mvn verify -P local-oracle -f /component/pom.xml -Dskip.surefire.test=true
    
  3. To run the integration test with DB2, issue the following commands:

    • Download DB2 driver version 4.19.26 db2jcc4.jar
    • To install the JAR file as a Maven plugin, issue the following command:
      mvn install:install-file -Dfile=/tmp/db2jcc4.jar -DgroupId=com.ibm.db2 -DartifactId=db2jcc -Dversion=4.19.26 -Dpackaging=jar
      
    • Uncomment the following test dependency in the /component/pom.xml file as shown below:
       <dependency>
           <groupId>com.ibm.db2</groupId>
           <artifactId>db2jcc</artifactId>
           <scope>test</scope>
           <version>4.19.26</version>
       </dependency>
      
    • To run the integration test, navigate to siddhi-store-rdbms/ directory and issue the following commands:
       mvn verify -P local-db2 -f /component/pom.xml -Dskip.surefire.test=true
      

Start integration tests in debug mode

mvn -P local-mysql -Dmaven.failsafe.debug verify
Note: local-mysql is the profile. Use other profiles accordingly.

Jenkins Build Status


Branch Build Status
master Build Status

Features

  • rdbms ((Store))

    This extension assigns data sources and connection instructions to event tables. It also implements read write operations on connected datasources

How to Contribute

Contact us

Support

  • We are committed to ensuring support for this extension in production. Our unique approach ensures that all support leverages our open development methodology and is provided by the very same engineers who build the technology.

  • For more details and to take advantage of this unique opportunity contact us via http://wso2.com/support/.

siddhi-store-rdbms's People

Contributors

grainier avatar ksdperera avatar mohanvive avatar suhothayan avatar wso2-jenkins-bot avatar niveathika avatar dilini-muthumala avatar lasanthafdo avatar anoukh avatar gokul avatar ramindu90 avatar sajithshn avatar tishan89 avatar dnwick avatar maheshika avatar rukshiw avatar ashensw avatar

Watchers

James Cloos avatar

Forkers

hansikase

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.