wrap sql queries with a variadic template

Bug #1434583 reported by Max Linke
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mixxx
Confirmed
Low
Unassigned

Bug Description

This blog contains a nice function for wrapping sql queries in QT

http://meetingcpp.com/index.php/br/items/refactoring-my-qt-database-code.html

It uses variadic templates introduced in C++11. This looks much nicer and we always have proper error checking of the query by default.

Tags: easy library
Max Linke (max-linke)
Changed in mixxx:
milestone: none → 2.1
Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

neat :)

tags: added: c++11
Revision history for this message
Petr Barborka (grim-ramone) wrote :

Hi, I'd like to give this one a shot. Any starter advice? Is there any sort of documentation for what and where are SQL queries actually currently used?

Revision history for this message
Petr Barborka (grim-ramone) wrote :

Found this neat tutorial for anyone interested in the topic: https://www.youtube.com/watch?v=o1EvPhz6UNE

Be (be.ing)
Changed in mixxx:
milestone: 2.1.0 → none
tags: removed: c++11
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/7909

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.