Git Product home page Git Product logo

monetdbe-examples's Introduction

monetdbe-examples

The MonetDB server code has been split into a separately useable single library for integration with a host language. The functionality offered encompasses the complete server functionality, but using a directly loadable library libmonetdbe.so or 'pip install monetdbe'

To test and illustrate the functionality, and give a bootstrap for users to use it in their daily life, we collected a handful of small examples to try it out.

program description
helloworld.{c, py} just start/stop an :inmemory: database
getstarted.{c, py} a simple application framework
people.py an educational example based on a people database
movies.py an edcucational example based on a movie database
imdb.py a snippet of the infamous movie database
tumble.c switching between different databases
kickoff.c the kickoff example to test part of the api
tpch-sf1.py the prototypical TPCH scale-factor 1 data warehouse
taxi.py the NYC taxi example
logs.c a snippet of the inhouse qa database
proxy.c a minimalistic monetdbe connection via the monetdbe remote capabilities with it self as a server setup
multiconnections.c multiple connections from same program

Feel free to propose other tiny examples that help users to explore the system. As a more extensive QA activity is ongoing, it may lead to smaller changes in the interfaces. Please report any issue with the code on stack-overflow.

Installation

For details on installing monetdbe see https://monetdbe.readthedocs.io/en/latest/installation.html. A quick guide to compile and install from source to create a library for your C application:

git clone https://github.com/MonetDB/MonetDB MonetDB
cd MonetDB
mkdir build && cd build                                                                                                                                                                     
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .                                                                                                                                                                             

This results in the libmonetdbe.so library to be created and stored .../lib64/libmonetdbe.so or .../build/tools/monetdbe/libmonetdbe.so. The necessary include file monetdbe.h is located in the same place.

Continue with the compilation of the examples using

mkdir build && cd build
cmake -DCMAKE_PREFIX_PATH=<monetdb-installation-prefix>/share/monetdb/cmake -DCMAKE_INSTALL_PREFIX=<monetdb-installation-prefix> ..                                                         
cmake --build .

Missing cmake files

If the MonetDB cmake files aren't found you could apply the monetdbe-examples.diff using patch and use:

PKG_CONFIG_PATH=$prefix/lib64/pkgconfig/ cmake .. #were $prefix is your monetdb install path

monetdbe-examples's People

Contributors

njnes avatar sstalin avatar aris-koning avatar mitchellweg avatar thzois avatar bernardom29 avatar hunhoffe avatar giuliafrasca avatar

Stargazers

 avatar

Watchers

 avatar

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.