DB2 packages in C - sql

I was trying to write a package file in C for db2. But I was just wondering what all include files and functions can be used. I saw this example in this link by york university. It explains a lot but I don't know what resources are available in terms of include libraries and their functions.
Your help is highly appreciated.
http://www.eecs.yorku.ca/course_archive/2012-13/W/3421/db2notes/programs/sage.sqc

Here's a link to the PDF manuals -- see the Application Development section.

Related

what is the tool that is used to make this documentation ? https://docs.abp.io/en/abp/latest

I am trying to figure out what is the tool that is used to make this documentation. as I am searching for a good documentation tool and preferably free.. any suggestions are appreciated c:
Volosoft uses its own documentation tool which is named VoloDocs
Also, it's free & open-source, you can visit VoloDocs Documentation for installation and usage info.

I need to build an executable, where do I begin

I've been tasked to build a program which provides a UI that creates, imports, edits and exports database files and generates PDF (or PDF convertible) reports based on the database information. I want to store and backup database files and folders using Dropbox. Database information will consist of text and images.
My problem is my only programming experience is in firmware design for microcontrollers or similar hardware at which I am proficient. I have minimal experience in software design though I have some basic fundamentals down from my college years. I've spent a lot of time working in C language and I have previous experience using java. I have no experience creating executables or working with database files or producing nice PDF reports from buffered information.
My primary question is where do I begin? What advice would you give on where to start? Is it realistic that someone with my experience could learn how to build this sort of program in a 4-6 month period? What tools would you use? Is there anything particularly difficult about what I'm trying to do? Do you know of any useful tutorials or learning programs that would help me get my foot in the door?
Thank you,
There's a lot of ways to tackle this problem. We all come from different backgrounds and experiences. Here is how I would approach the problem. However, there may be limitations based on your budget and licensing options!
I would utilize QT and its many supplemental libraries as the core framework for the system.
Use QML to create front end
Pass data between front end and controller c++ file. '[Expose c++ to qml]'2
Use QT database API to I/O with whatever you are targetting.
Use QPdf writer to write the PDF file.
For image processing use something like openCV
This solution would utilize mostly c++ and QML to tackle the project.

Why we need Hadoop distributions?

I am new to Hadoop. So, please can anybody explain to me why we need cloudera or Hortonworks? We can download each Apache project and use those libraries to create Big Data project, right? And, also if I already use linux OS, do I have to use cloudera-quickstart vm ware? Thanks in advance.
Lets look at this in using a similar analogy.
Lets assume you are using OS 'D' of version 'v1'. In it you need different set of libraries - A,B and C.
A depends on B and also C depends on B. Across the versions of A and C, the dependencies are different versions of C.
Now if you need all the three libraries, it becomes your head ache to make sure you use/install libraries of each such that each are compatible and there's no clash.
Plus not everyone is expert in all the three libraries as well as the underlying system. So what happens if there some optimization needed in using these libraries while using them in your own tools? Also what about some issues that you face while using them.
That's where these "Stack Distributions" come into play. Each of these vendors provide a complete stack which is tested as a whole and are compatible with the different libraries that are packaged and not just only hadoop. This makes lives of lots of people easier. Also based on what plan or subscription you have with the vendor, you can get support/training and other auxiliary things.
Just to add as an extra, please remember, Open Source does not necessarily mean Free.(Please note that this is my personal opinion)
As to your other part of question wrt with linux do you need to use any vm ware image or so, for a beginner or learning purposes, this makes your life rather simpler.

How perform the local libgit2 test cases

I want to add an API like git_merge_octopus_bases, but how perform the local test cases? Could please show me some documents for this kind topics.
The libgit2 project relies on the Clar test framework.
You can get a first grasp of Clar features and usage in the Readme file.
The following documents should help one understand the basics of contributing to libgit2:
Contributing guidelines
LibGit2 conventions

SQL parser in C

I want to parse and store the columns and values of a SQL DML (INSERT, UPDATE, DELETE) statement in C. Need the URL of the open source code or a library with which I can link my C program. The platform is SUSE Linux. Have tried to make and use libSQL unsuccessfully. A detailed answer is appreciated. Thanks.
Additional Notes: Please suggest a library/code that I can link with my C program. In my program I want to use the functions of this library to parse and use the tokens for further processing.
You can have a look at the source code for SQLite. It uses a parser called Lemon.
Links:
SQLite architecture
Lemon parser
You can also look at the source code for postgresql-plpython3. Looks like it has a pure C based SQL parser.
Link:
postgresql-plpython3 # github
I would suggest to start from the real parser of a real DBMS. There are several in free software. For instance, the parser of PostgreSQL is in the directory src/backend/parser of the distribution and is written in C and Yacc.
See the Chapter "Parsing SQL" in "Lex & Yacc"(O'Reilly) in google books http://books.google.fr/books?id=YrzpxNYegEkC&lpg=PT1&dq=bison%20flex%20sql%20grammar&client=firefox-a&hl=en&pg=PA109
Have you looked at SQLite ? It certainly does have the code to parse SQL, so maybe you could avoid reimplementing it..
ANTLR can target C, among other languages, and its catalog of premade grammars has a bunch of SQL dialects - notably MySQL and Oracle.
µSQL for C++
What is µSQL ?
µSQL is a SQL parser engine for C++ to develop SQL based applications
easily, and it supports other SQL like domain specific languages such
as UnQL and GQL too. Because µSQL is written only in old standard C++
library such as STL with ANTLR, then you can use it with many C++
compilers and platforms.
Repo on Github
The standalone SQL parser of the Hyrise database system is open source and, even though it is written in C++, it can be accessed from C and is easy to understand and modify. It utilizes bison and flex.
Not sure is there any mature C sql parser can do that easily.
Here is a Java version SQL library can do what you need exactly, it can be used to Retrieve/Refactor table & column name from a complex SQL query easily.
Have you considered writing your own using lex and yacc? (the hacker - hardcore approach)
Not trivial .. but this site might help you get started