C++ SQLite Yet Another Api (YAPI)

Perhaps not C++, but a real storage.
Perhaps not C++, but a real storage.

Not for cookies, but for data and just very recently, I had a need for a local storage, aka desktop database. Of course, it has to be small but complete, mature and functional. And the API, I am creating, has to be simple.

Thus “C++ SQLite Yet Another API (YAPI)”, was born.

Update: just checked in, a much lighter version “1.0.1”. Continue reading “C++ SQLite Yet Another Api (YAPI)”

C++ How to create unique types, from the all stack template. Part two.

Same Template Different Types
Same Template Different Types

Part one is here. And what is going on in here?

A real-life use case. I had the same task in my dbj++sql. An SQLite standard C++ API. A simple template with “nothing” inside that has to be made into separate unique types when defined.

Simple looking, but crucial for the whole framework to offer “simple udf’s” functionality for the customers.  And I wanted to implement this with as little interaction as possible with complex sqlite3 C API. Continue reading “C++ How to create unique types, from the all stack template. Part two.”

C++ How to create unique types, from the all stack template. Simple matrix

Consider this:

Continue reading “C++ How to create unique types, from the all stack template. Simple matrix”

C++ Macros with variable number of arguments

C++ Macros with a variable number of arguments, or even worse sounding “Variadic Macro’s“.

Why would anybody need this? Like C++ is not “hard enough” already, one might exclaim? Well. standard C/C++ is not hard.  But to learn anything properly, good examples are priceless. Here is one good example.

(Working code example)

Continue reading “C++ Macros with variable number of arguments”