Giter Site home page Giter Site logo

Comments (9)

surekav avatar surekav commented on June 6, 2024

@kdrodger Could you please take a look or refer to the right person for this? Thanks!

from db2-samples.

tasdevil13 avatar tasdevil13 commented on June 6, 2024

As Db2 Community Edition is free and it includes the header files for developers, it would be ok for someone to use it for development of a vendor library.
Or would this require a vendor to license at least some Db2?

from db2-samples.

irinadel avatar irinadel commented on June 6, 2024

@surekav Which header files are required? Can you post some additional details

from db2-samples.

surekav avatar surekav commented on June 6, 2024

@irinadel @tasdevil13
There are quite a few header files that I believe are needed for building the vendor library.
The sample vendor.C implementation provided by IBM here: https://github.com/IBM/db2-samples/blob/master/BARVendor/vendor.C includes 3 header files. These are:

  • sqlutil.h
  • sqluvend.h
  • sqluv.h

These header files are located in the DB2 install directory (more specifically at /opt/IBM/db2/V11.5/include/ on a host where Db2 is installed). This Db2 install directory path is provided during compilation and linking as mentioned here: https://github.com/IBM/db2-samples/blob/master/BARVendor/README#L72

These header files, in turn, uses other header files present in /opt/IBM/db2/V11.5/include/ as well.

Similarly, to build and use db2APIs such as the ones mentioned here https://github.com/IBM/db2-samples/tree/master/cpp other header files from /opt/IBM/db2/V11.5/include/ are needed.
For e.g. the sample file here: https://github.com/IBM/db2-samples/blob/master/cpp/ininfo.C makes use of

  • db2ApiDf.h
  • sqlenv.h
  • utilapi.h
    which again references other header files from this directory.

from db2-samples.

irinadel avatar irinadel commented on June 6, 2024

So in reality, these header files don't need to reside in this repo. They can just be pointed to when you're compiling the examples against an existing db2 installation. I am not sure what value it will provide to have all dependent header files extracted in this repo.

from db2-samples.

surekav avatar surekav commented on June 6, 2024

@irinadel
Well, this repo specifies that it comes under Apache2.0-Licence and therefore anyone is free to use code from this repo. The same may not be true with the header files which are installed as part of Db2 installation. They may be under a different licence which may have certain restrictions on its usage.

Would copying the header files from Db2 install directory to our organisation repository and building application using the structures and definitions from these header files require any licensing ?

from db2-samples.

kdrodger avatar kdrodger commented on June 6, 2024

I think I'm wondering about the same questions as Irina -- is there value and a use case for having a copy of the SDK and header files here, without the rest of some Db2 deployment release? Those vendor interfaces are an interesting case, as opposed to most of the other samples which actually require a Db2 instance to build and execute.

It might be possible to put a copy of SDK here as well, although even then it would likely only be for 64-bit x86 Linux, and only for the most recent Db2 release, and so I'm wondering if that breaks the value prop since the SDK APIs could change and no longer reflect the Db2 level that you intend to build for and support.

from db2-samples.

surekav avatar surekav commented on June 6, 2024

Thank @kdrodger @irinadel for the quick response.
Agree with you that header files need not be part of this repo. For vendor interfaces case which needs Db2 header files, do you think the below approach attracts any licensing issues:

  • Copy the header files from the Db2 install directory to our organizational repository for building any Db2 backup vendor products and commercialization of the same.

from db2-samples.

kdrodger avatar kdrodger commented on June 6, 2024

Closing due to inactivity. Feel free to re-open if necessary.

from db2-samples.

Related Issues (20)

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.