Using templates to wrap SQLite database commands as functors
Details
Presenter Ján Dugáček
Since C++11, it's possible to use generics to derive code for binding SQL parameters and retrieving values from query results from function pointers. Thus, we need only the SQL command and a C++ type to derive all the required code to execute a query just as a single function call. It can be easily demonstrated with SQLite, but it would work also with other relational databases.
Example what can be achieved with this:
```
Sql\ query{database, "SELECT COUNT(item) FROM items WHERE owner=?"};
int count = query(owner);
```
Meetup will be at ČVUT in the building of Faculty of Electrical Engineering (FEL) on Charles Square in room 327 (building E).
From Charles Square, go straight through the main doorman (report to the doorman that you are going to the event at FEL), through the concrete corridor, glass cube to the courtyard and go diagonally right to the E building - see map.
There, take the main staircase to the 3rd floor to classroom 327 (located to the right of the staircase) - see interactive map.
While you wait why not join our discord server
This event is in person only.
Timetable:
- 18:00 Get together, socialize
- 18:30 talks starts
- ??:?? talk ends, more socializing
